上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: 思想:在一个窗口类中声明另一继承与Qdialog的类的变量 还有在另一类中parentwidget()函数获取父类窗口,然后将其隐藏。。 窗口1: mywin1.h mywin1.cpp mywin2.h mywin2.cpp 阅读全文
posted @ 2016-04-01 11:12 高傲的monkey 阅读(319) 评论(0) 推荐(0)
摘要: 在笔记qt课程04笔记中 阅读全文
posted @ 2016-04-01 11:05 高傲的monkey 阅读(170) 评论(0) 推荐(0)
摘要: 事件 1.QEvent -->类型 -> QKeyEvent QEvent::KeyRelease QEvent::MouseMove -> QMouseEvent 2.事件处理过程 三大类型事件: 1.Spontaneous events(系统产生) -->事件队列 2.Posted events 阅读全文
posted @ 2016-04-01 11:00 高傲的monkey 阅读(918) 评论(0) 推荐(0)
摘要: 关联: bool connect ( const?QObject?*?sender, const?char?*?signal, const QObject * receiver, const char * slot, Qt::ConnectionType?type?= Qt::AutoConnect 阅读全文
posted @ 2016-04-01 10:55 高傲的monkey 阅读(531) 评论(0) 推荐(0)
摘要: 2.1环境的搭建 linux-> 2.1.1 ./qt-opensource-linux-x86-5.5.0.run 2.1.2 vim /etc/profile (.bashrc) export PATH=/home/gec/Qt5.5.0/5.5/gcc/bin:$PATH 验证:关闭终端,再打 阅读全文
posted @ 2016-04-01 10:45 高傲的monkey 阅读(513) 评论(0) 推荐(0)
摘要: UDP QUdpSocket > upd socket 1.创建 QUdpSocket *p = new QUdpSocket(); 2.最先接收数据一方 调用bind-> ip/port bool QAbstractSocket::bind(const QHostAddress & address 阅读全文
posted @ 2016-04-01 10:39 高傲的monkey 阅读(3285) 评论(0) 推荐(0)
摘要: server server.cpp client.h sever.cpp ui.h 阅读全文
posted @ 2016-03-29 11:41 高傲的monkey 阅读(2279) 评论(0) 推荐(0)
摘要: 1、dialog.h #define DIALOG_H #include <QDialog>#include"mythread.h"namespace Ui {class Dialog;} class Dialog : public QDialog{ Q_OBJECT public: explici 阅读全文
posted @ 2016-03-28 20:05 高傲的monkey 阅读(262) 评论(0) 推荐(0)
摘要: 继承:保持已有类的特性而构造新类的过程 派生:在已有类的基础上新增自己的特性而产生新类的过程 #include<iostream>using namespace std;class A{public : int x;protected: int y;private: int z; }; class 阅读全文
posted @ 2016-03-23 20:36 高傲的monkey 阅读(300) 评论(0) 推荐(0)
摘要: 类的组合:类中的数据成员是另一个类的对象:可以在已抽象的基础上实现更复杂的抽象 也就是一个类中抱含了另一个类的对象; 类组合的构造函数:不仅要负责对本类中的基本数据类型成员数据赋初值,也要对对象成员赋初值: 阅读全文
posted @ 2016-03-23 20:08 高傲的monkey 阅读(597) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页