随笔分类 -  QT

摘要:1、计算器的界面如下图所示 dalog.cpp main.cpp 代码结构: dialog.h 编译代码: 阅读全文
posted @ 2016-10-29 10:32 高傲的monkey 阅读(1662) 评论(0) 推荐(0)
摘要:cp qt-everywhere-opensource-src-5.5.0.tar.gz /opt/qt/2.1 解压qt源码 sudo tar xzf qt-everywhere-opensource-src-5.5.0.tar.gz 2.2 修改编译的配置文件 gec@ubuntu:/opt/q 阅读全文
posted @ 2016-04-05 19:06 高傲的monkey 阅读(1079) 评论(0) 推荐(0)
摘要:一、准备工作: 1、QT应用程序 2、工具链 》交叉工具链一安装,就会有标准的c库 3、扩展的第三方库(ARM)()触摸屏库(tslib.tar.gz) 4、QT库 二、使用交叉工具链编译ts库和QT库(这里默认为已编译好) tslib-1.4.tar.gz qt-everywhere-openso 阅读全文
posted @ 2016-04-05 19:04 高傲的monkey 阅读(2303) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-04-01 11:40 高傲的monkey 阅读(215) 评论(0) 推荐(0)
摘要:进程:1.QProcess 进程类 QProcess *a=new QProcess(); 2.启动void QProcess::start(const QString & command, OpenMode mode = ReadWrite)void QProcess::start(const Q 阅读全文
posted @ 2016-04-01 11:17 高傲的monkey 阅读(9029) 评论(0) 推荐(0)
摘要:思想:在一个窗口类中声明另一继承与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 阅读(169) 评论(0) 推荐(0)
摘要:事件 1.QEvent -->类型 -> QKeyEvent QEvent::KeyRelease QEvent::MouseMove -> QMouseEvent 2.事件处理过程 三大类型事件: 1.Spontaneous events(系统产生) -->事件队列 2.Posted events 阅读全文
posted @ 2016-04-01 11:00 高傲的monkey 阅读(917) 评论(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 阅读(530) 评论(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 阅读(510) 评论(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 阅读(3283) 评论(0) 推荐(0)
摘要:server server.cpp client.h sever.cpp ui.h 阅读全文
posted @ 2016-03-29 11:41 高傲的monkey 阅读(2273) 评论(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 阅读(261) 评论(0) 推荐(0)
摘要:解决办法:Run regedit.Hop toHKEY_CURRENT_USER\Software\Trolltech\Versions或HKEY_CURRENT_USER\Software\Digia\VersionsAdd a new key named "bin文件夹的上一级目录" or wh... 阅读全文
posted @ 2015-04-11 00:47 高傲的monkey 阅读(2589) 评论(0) 推荐(0)