![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
text
麻薯哈哈哈///
折腾是病,十年磨一剑,朝闻道,望人生,朝朝暮。
展开
-
关于qt实现指示灯图片闪烁问题(换了一种方法已经解决)
定时器前面稍短时间能正常显示,但是后面定时器就卡住了,甚至系统崩溃。void Widget::onPushButtonclicked(){timer = new QTimer(this);timer->stop();connect(timer,SIGNAL(timeout()),this,SLOT(timerOut()));timer->start(500);}void...原创 2019-08-23 14:06:26 · 6602 阅读 · 4 评论 -
Qt 简单线程测试
mainwindow.h********************************#ifndef MAINWINDOW_H#define MAINWINDOW_H#include namespace Ui {class MainWindow;}class MainWindow : public QMainWindow{Q_OBJECTpublic:explicit Ma...原创 2019-08-27 07:53:29 · 168 阅读 · 0 评论 -
Qt RGB调色板的参数值
QColor::QColor(int r, int g, int b, int a = 255)透明度不是用rgb值来控制的,而是依赖alpha值(qt中就为第四个参数a)来控制,如果是无色透明的话,只要设置alpha为0,无论rgb是什么数值,都是显示为无色透明的。如果你在网页里面设定颜色的话,可以这样定义:rgba(0,0,0,0),最后的那个0就表示alpha值。...原创 2019-08-28 09:40:13 · 2933 阅读 · 0 评论 -
枪械管理系统
#include "mainwindow.h"#include "ui_mainwindow.h"#include <QTextCodec>#include <QDebug>#include <QSqlDatabase>#include <QMessageBox>#include <QSqlQuery>#include &...原创 2019-08-29 07:44:15 · 279 阅读 · 0 评论 -
Qt滑动条控制仪表指针转动
转自:https://blog.csdn.net/lwbeyond/article/details/62969283增加了滑动条控制功能,但是使用update()强制刷新界面后,电脑CPU达到25%,耗费大资源,未能解决!.h文件#ifndef WIDGET_H#define WIDGET_H#include #include namespace Ui {class Widget...转载 2019-08-31 14:24:25 · 922 阅读 · 0 评论