随笔分类 - Qt UI
摘要:一、 1.自动检查是否正常,如果不正常退出。 二、 #include "mainwindow.h" #include <QApplication> #include <QFile> #include <QSplashScreen> #include <chrono> #include <thread
阅读全文
摘要:1. 取消窗体标题栏 FramelessWindowHint 无边框,设置FramelessWindowHint后,带来主要问题是无法移动窗口以及无法使用鼠标拖拽缩放窗口大小。 setWindowFlags(Qt::FramelessWindowHint |Qt::WindowStaysOnTopH
阅读全文
摘要:一、 二、 #ifndef DISPLAYIMAGELABEL_H #define DISPLAYIMAGELABEL_H #include <QObject> #include <QLabel> #include <QPixmap> class DisplayImageLabel : public
阅读全文
摘要:一、 二、 #ifndef RUNGUARD_H #define RUNGUARD_H #include <QObject> #include <QSharedMemory> #include <QSystemSemaphore> class RunGuard { public: explicit
阅读全文
摘要:一、设置颜色,支持html语言格式的 ui->textEdit->append("<font color=\"#FF0000\">红色字体</font> "); 信息显示用到,错误的红色字体 光标移到后面 teMsg_->moveCursor(QTextCursor::End); void Main
阅读全文

浙公网安备 33010602011771号