
window端QT开发
---牧马人---
来了就是客人,一杯茶饮少不了
展开
-
QT开发之开机自动运行软件
写在前面平台:windows需求:自启动,需要电脑开机后自动运行软件,windows系统需要在注册表中登记。/** * 开机自动运行软件 * @param 1:isstart = true,注册开机自动运行 * isstart = false,取消开机自动运行*/void MainWindow::SetMyAppAutoRun(bool isstart){ QString application_name = QApplication::applicati.原创 2020-05-19 09:33:30 · 538 阅读 · 0 评论 -
window端QT开发之原地延时
写在前面需要原地延时,没找到什么好的方式void Delay_MSec(unsigned int msec){ QTime _Timer = QTime::currentTime().addMSecs(msec); while( QTime::currentTime() < _Timer ) QCoreApplication::processEven...原创 2020-03-17 23:49:49 · 193 阅读 · 0 评论 -
window端QT开发之串口数据接收处理
写在前面串口QSerialPort,本篇先讲讲串口的数据接收.pro中添加QT += serialport头文件#include <QSerialPort>#include <QSerialPortInfo>#include <QIODevice>定义全局变量static QSerialPort * m_serialport=new QSe...原创 2020-03-17 17:38:26 · 1312 阅读 · 0 评论 -
window端QT开发之定时器的使用
写在前面定义全局变量QTimer *mytimer;初始化void MainWindow::initialize_timer(int timeout_ms){ mytimer= new QTimer(this); connect(mytimer,SIGNAL(timeout()),this,SLOT(timerCallback())); mytimer-&g...原创 2020-03-17 17:21:49 · 313 阅读 · 0 评论 -
window端QT开发之scrollArea布局的使用
写在前面scrollArea布局可以解决在较小的布局空间里装下较多的控件,可以通过滑动控件滑动工作界面视频演示点我原创 2020-03-11 09:34:10 · 1161 阅读 · 0 评论 -
window客户端QT开发之exe打包
写在前面如果不打包成独立的exe文件,就只能自己本地使用或者以一个文件夹的方式去传播QT creater生成release文件xxx.exe加载注册表相关链接库Enigma Virtual Box打包生成window系统:window10 专业版一、QT creater生成release文件xxx.exe按照下图设置IDE生成的Release文件二、加载相关文件1、Qt...原创 2019-08-05 15:14:37 · 391 阅读 · 0 评论 -
QT使用过程记录
一、原地等待延时利用Qtime实现#include <QTime>void Delay_MSec(unsigned int msec){ QTime _Timer = QTime::currentTime().addMSecs(msec); while( QTime::currentTime() < _Timer ) QCoreAppli...原创 2019-09-26 00:37:13 · 416 阅读 · 0 评论