QT入门笔记
文章平均质量分 75
learn123_net
http://learn123.net There are lots of products in the market that make you dazzled and you dont know how to make a choice. In here we introduce the latest fashion and popular treands. Therefore you learn it first,and then buy the goods that you bes
展开
-
QT入门笔记--Hello,World
学C++已经有几个月了,总是研究入门书籍也不太好,于是想学点面向对象的东西,有人推荐研究MFC,但又不想把自己绑定到“有点软”(微软)平台上,于是就选了QT。总是在CSDN上发表文章,自己都有点不好意思了(害怕误导别人)。原意只是保存个人笔记的(本人手提经常重装,有时重装时忘记备份,辛辛苦苦的笔记就没了)。声明:此系列笔记(应该说所有文章),只涉及对自己有用,且自己看的懂的东西,并非入门教材或原创 2013-07-18 13:13:36 · 655 阅读 · 0 评论 -
QT入门笔记--建立连接--connect()
#include #includeint main(int argc, char *argv[]){ QApplication myapp(argc, argv); QPushButton *btn = new QPushButton("Quit"); QObject::connect(btn,SIGNAL(clicked()),&myapp,SLOT原创 2013-07-18 15:11:36 · 1216 阅读 · 0 评论 -
QT入门笔记--信号和槽(附简单的C++类实现代码)
*对于所有定义了信号和槽的类,在类定义开始处的Q_OBJECT宏都是必须的 *signals,slots关键字实际上是宏 *一个信号的签名必须与它的接收槽的签名相匹配(即槽其参数个数,类型,顺序必须要和对应的信号保持一致。) *当一个信号被发射,会自动调用它所连接槽 *一个信号可以连接多个槽 *多个信号可以连接同一个槽原创 2013-07-18 23:52:10 · 1179 阅读 · 0 评论 -
QT入门笔记--创建对话框
创建对话框的基本步骤: *创建并初始化子窗口部件 *把子窗口部件放到布局中 *设置Tab键顺序(本文省略了此步骤)原创 2013-07-19 09:10:27 · 746 阅读 · 0 评论 -
QT入门笔记--窗口部件的布局
#include #include#include#includeint main(int argc, char *argv[]){ QApplication myapp(argc, argv); QWidget *w=new QWidget; w->setWindowTitle("H_Layout"); QSpinBox *sp原创 2013-07-18 16:37:44 · 1473 阅读 · 1 评论