QT 50种常用标准对象
2015-08-20 10:59
666 查看
常见的50 种 QT Object,下面按alpha排序, 有非默认构造的简单示例。
它们的属性设置也有通用性。有不同的外观,有不同的属性行为.不同的用途.
掌握他们是编程的基础. 可以参考<<Qt4 精彩编程实例分析>>源代码
QAction
QActionGroup
QCheckBox
QComboBox
QCursor
QDateTime
QDateTimeEdit
QDialog
QDialogButtonBox
QDockWidget
QFile
QFontComboBox
QFrame
QGraphicsEllipseItem
QGraphicsItemAnimation
QGraphicsPolygonItem
QGraphicsRectItem
QGraphicsScene
QGraphicsTextItem
QGraphicsView
QGridLayout
QGroupBox
QHBoxLayout
QImage
QLabel
QLineEdit
QListView
QListWidget
QListWidgetItem
QMainWindow
QPainter
QPixmap
QProgressBar
QProgressDialog
QPushButton
QRadioButton
QSlider
QSpinBox
QSplitter
QStackedWidget
QStandardItemModel
QTabWidget
QTableView
QTableWidget
QTableWidgetItem
QTextEdit
QTimeLine
QTimer
QToolButton
QVBoxLayout
QWidget
new QAction(QIcon(":/images/copy.png"), tr("Copy"), this);
new QAction(QIcon(":/images/zoomin.png"),tr("ZoomIn"),this);
new QAction(tr("Add Polygon"),this);
new QCheckBox(tr("receive msg"));
new QCursor(QPixmap(":/images/custom.png"),-1,-1);
new QDialogButtonBox(Qt::Vertical);
new QDockWidget( tr("DockWindow 2"), this );
new QFile(fileName);
new QFontComboBox(toolBar);
new QGraphicsEllipseItem(QRectF(0,0,80,60));
new QGraphicsPolygonItem(QPolygonF(v));
new QGraphicsRectItem(QRectF(0,0,60,60));
new QGraphicsTextItem("Hello Qt");
new QGroupBox(tr("Rotate"));
new QImage(":/images/heart.png");
new QLabel(tr("width:"));
new QListWidget(splitterMain);
new QListWidgetItem (icon,fileName);
new QPainter(pix);
new QPixmap(":/images/rotate.png");
new QPixmap(size());
new QPixmap(width,height);
new QPushButton(tr("pushbutton"));
new QRadioButton(tr("radiobutton1"),group);
new QSlider(Qt::Horizontal);
new QSplitter(Qt::Horizontal,0);
new QSplitter(Qt::Vertical,splitterMain);
new QStandardItemModel(4,4,this);
new QTableWidgetItem(tr("Alice"));
new QTextEdit( QObject::tr("Top Widget"),splitterRight);
new QTimeLine(4000);
它们的属性设置也有通用性。有不同的外观,有不同的属性行为.不同的用途.
掌握他们是编程的基础. 可以参考<<Qt4 精彩编程实例分析>>源代码
QAction
QActionGroup
QCheckBox
QComboBox
QCursor
QDateTime
QDateTimeEdit
QDialog
QDialogButtonBox
QDockWidget
QFile
QFontComboBox
QFrame
QGraphicsEllipseItem
QGraphicsItemAnimation
QGraphicsPolygonItem
QGraphicsRectItem
QGraphicsScene
QGraphicsTextItem
QGraphicsView
QGridLayout
QGroupBox
QHBoxLayout
QImage
QLabel
QLineEdit
QListView
QListWidget
QListWidgetItem
QMainWindow
QPainter
QPixmap
QProgressBar
QProgressDialog
QPushButton
QRadioButton
QSlider
QSpinBox
QSplitter
QStackedWidget
QStandardItemModel
QTabWidget
QTableView
QTableWidget
QTableWidgetItem
QTextEdit
QTimeLine
QTimer
QToolButton
QVBoxLayout
QWidget
new QAction(QIcon(":/images/copy.png"), tr("Copy"), this);
new QAction(QIcon(":/images/zoomin.png"),tr("ZoomIn"),this);
new QAction(tr("Add Polygon"),this);
new QCheckBox(tr("receive msg"));
new QCursor(QPixmap(":/images/custom.png"),-1,-1);
new QDialogButtonBox(Qt::Vertical);
new QDockWidget( tr("DockWindow 2"), this );
new QFile(fileName);
new QFontComboBox(toolBar);
new QGraphicsEllipseItem(QRectF(0,0,80,60));
new QGraphicsPolygonItem(QPolygonF(v));
new QGraphicsRectItem(QRectF(0,0,60,60));
new QGraphicsTextItem("Hello Qt");
new QGroupBox(tr("Rotate"));
new QImage(":/images/heart.png");
new QLabel(tr("width:"));
new QListWidget(splitterMain);
new QListWidgetItem (icon,fileName);
new QPainter(pix);
new QPixmap(":/images/rotate.png");
new QPixmap(size());
new QPixmap(width,height);
new QPushButton(tr("pushbutton"));
new QRadioButton(tr("radiobutton1"),group);
new QSlider(Qt::Horizontal);
new QSplitter(Qt::Horizontal,0);
new QSplitter(Qt::Vertical,splitterMain);
new QStandardItemModel(4,4,this);
new QTableWidgetItem(tr("Alice"));
new QTextEdit( QObject::tr("Top Widget"),splitterRight);
new QTimeLine(4000);
相关文章推荐
- QT creator+OpenCV2.4.2+MinGW 在windows下开发环境配置
- QT QTableView用法小结(设置单元格字体颜色,文本字体...)
- Qt入门之常用qt控件认知之布局控件(QFormLayout,QBoxLayout,QGridLayout,QStackLayout)转帖比较好懂而且全面
- QT表格的宽度自适应调整方法void setStretchLastSection ( bool stretch ) 转帖
- ubuntu11.10上安装QT5.1.0
- Qt助手翻译篇之—— QGrapicsItem类
- Windows平台下使用VS2012编译Qt-4.8.7源代码及单独编译qtwebkit-2.3.4
- Qt学习之路之 QTextEdit 重温
- Qt 5.3.2在周立功M3352开发板的移植记录
- arm平台tslib的编译与qte源代码包配置中的-qt-mouse-tslib
- qt 运行提示:error: cannot find -lGL
- Qt窗口的标题栏自绘
- 学习记录-Qt在win7下安装opencv库
- win7下Qt Creator使用Gsoap
- Qt下使用的静态链接库------ *.lib转化为mingw使用的.a格式的静态库
- Qt学习之路【1】:QT显示中文问题
- 在Qt使用moveToThread() qt的线程
- QT 中控件缩放比列设置
- MAC 平台使用qt 静态链接boost 库问题
- QT 正则表达式