轉載

熟悉常用的視窗元件:
1 按鈕類
QPushButton | 普通按鈕 |
QToolButton | 工具按鈕:通常在工具欄使用 |
QRadioButton | 單選框 |
QCheckBox | 複選框 |
QCommanLinkButton | Vista風格的指令連結按鈕 |
QDialogButtonBox | 對話框按鈕組:确定、取消 |
2 顯示元件
QLabel | 标簽 |
QTextBrowser | 文本區域 |
QGraphicsView | 圖像顯示 |
QCalendarWidget | 月曆元件 |
QProgressBar | 進度條 |
QLCDNumber | 液晶數字顯示 |
QWebView | Web浏覽器視圖 |
QDeclarativeView | 顯示Qt聲明的使用者接口 |
3 輸入元件
QComboBox | 下拉選框 |
QFontComboBox | 字型選擇 |
QLineEdit | 單行文本框 |
QTextEdit | 多行文本框(富文本) |
QPlainTextEdit | 多行文本框(純文字) |
QSpinBox | 整數範圍調節器 |
QDoubleSpinBox | 實型範圍調節器 |
QDial | 環形範圍調節器 |
QSlider | 滑動調節器 |
QTimeEdit | 時間輸入框 |
QDateEdit | 日期輸入框 |
QDateTimeEdit | 時間日期輸入框 |
4 容器類
QFrame | 幀視窗 |
QWidget | 界面部件,所有界面對象類的基類 |
QToolBox | 工具欄容器 |
QTabWidget | 多标簽容器 |
QStackedWidget | 層次容器,一次隻有一個可見 |
QScollArea | 滾動區域 |
QGroupBox | 對象組容器 |
QMdiArea | 多文檔容器 |
QDockWidget | 懸浮容器 |
QDail, QSpinBox的使用
QDial:環形的範圍選擇器
QSpinBox :下拉清單形式的整數選擇器