Qt窗口永久置顶

一、pro文件中调用Windows提供库:windows LIBS += -lUser32 二、引用头文件this #include "Windows.h" 三、定义QTimercode QTimer *m_timer; 四、核心代码:class m_timer = new QTimer(); m_timer->start(1000); //程序每隔1秒置顶一次 connect(m_timer,
相关文章
相关标签/搜索