随笔分类 -  Qt

摘要:insertItems(int ,QStringList);//从int开始插入条目; hide();//QWidget class,QComboBox class----隐藏窗体;setSizeConstraint(SizeConstraint)//QLayout class.---调整layout的大小 SizeConstraint()//QLayout class.---返回layout的大小 setMinimumSize()//QWidget class--保留窗体的最小大小 setWindowIcon();//QApplication class;QWidget class--设置窗 阅读全文
posted @ 2013-09-09 14:15 SoulReaper 阅读(1499) 评论(0) 推荐(0)
摘要:成员函数: show(); //基类为QWidget的派生类都有---弹出窗体 exec(); //QApplication class;QCoreApplication class;---进入事件循环,等待exit(); //QDialog class;QMessageBox class----使用模态弹出窗口 //QMenu class;----实施菜单同步 setRange(0,130); //QSpinBox class; QAbstractSlider class 派生的QSlider;---设置滑块和数字设定框的上下限; //==setMinimum(minimum);s... 阅读全文
posted @ 2013-09-09 14:13 SoulReaper 阅读(1121) 评论(0) 推荐(0)
摘要:数据成员:Q_OBJECT //当需要定义私有槽或者信号时需要在类开头加上 Qt::Horizontal //用来标识一个组件的方向,是Qt::Orientation的枚举元素Qt::Vertical //用来标识一个组件的方向,是Qt::Orientation的枚举元素Qt::CaseSensitivity //枚举变量 Qt::CaseSensitive //Qt::CaseSensitivity的枚举元素=1Qt::CaseInsensitive//Qt::CaseSensitivity的枚举元素=0QDialogButtonBox::ok //按钮组中的OK按钮 QDialog... 阅读全文
posted @ 2013-09-09 14:12 SoulReaper 阅读(455) 评论(0) 推荐(0)
摘要:主函数:#include int main(int argc,char *argv[]) { QApplication app(argc,argv); .......... return app.exec();} QCore include:QString //Qt类型字符串QChar //Qt类型字符QStringList//Qt类型字符串列表QVariant//Qt类型类似unionQList //Qt类型模板类列表QDataStream out(&file);//提供有顺序的二进制数据给QIODevice;QRegExp//提供使用正则表达式的模式匹配QSettings ... 阅读全文
posted @ 2013-09-09 14:11 SoulReaper 阅读(558) 评论(0) 推荐(0)
摘要:QObject--QCoreApplication---QApplication --QWidget------------QAbstractButton----QPushButton ------QCheckBox ------------QAbstractSpinBox---QSpinBox ------------QAbstractSlider------QSlider ------------QFrame---------------QLabel --------------QAbstractItemView----QTableView ----QTa... 阅读全文
posted @ 2013-09-09 14:05 SoulReaper 阅读(393) 评论(0) 推荐(0)