Changes between Version 15 and Version 16 of wade/QT


Ignore:
Timestamp:
Oct 16, 2011, 3:41:46 PM (13 years ago)
Author:
wade
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wade/QT

    v15 v16  
    88 * API Reference:http://doc.trolltech.com/latest/index.html
    99 * C:/QtSDK/readme/index.html
     10 * widget:如!QLineEdit、!QPushButton。
     11 * layout:用來分配 widget 的排列方式。
     12
    1013
    1114= !PySide =
    1215 1. 手冊:http://developer.qt.nokia.com/wiki/PySideDocumentation/
    13  1. 環境:
     16 2. 環境:
    1417    * QT SDK
    1518    * Python
    1619    * !PySide 1.07
    17  1. 測試:
     20 3. 測試:
    1821{{{
    1922#!python
     
    2427    結果:1.0.7
    2528
    26  1. 第一個 Hello World GUI 程式:
     29 4. 第一個 Hello World GUI 程式:
    2730{{{
    2831#!python
     
    4952}}}
    5053
    51  1. 第二個程式,加入connect與程式連結:
     54 5. 第二個程式,加入connect與程式連結:
    5255{{{
    5356#!python
     
    7679}}}
    7780
     81 6. 第三個程式:產生一個 dialog 應用程式
     82{{{
     83#!python
     84#!/usr/bin/python
     85 
     86# Import PySide classes
     87import sys
     88from PySide.QtCore import *
     89from PySide.QtGui import *
     90 
     91 
     92# print hello
     93def say_hello():
     94    print 'hi.. wade'
     95   
     96class Form(QDialog):
     97    def __init__(self, parent=None):
     98        super(Form, self).__init__(parent)
     99        self.setWindowTitle('My form')
     100
     101if __name__ == '__main__':
     102    app = QApplication(sys.argv)
     103    form = Form()
     104    form.show()
     105    sys.exit(app.exec_())
     106}}}
     107
    78108
    79109= Reference =