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,
相關文章
相關標籤/搜索