最近用Qt软件界面,需要用到mouseMoveEvent,研究了下,发现些问题,分享一下。 在Qt中要捕捉鼠标移动事件需要重写MouseMoveEvent,但是MouseMoveEvent为了不太耗资源在默认状态下是要鼠标按下才能捕捉到。要想鼠标不按下时的移动也能捕捉到,需要setMouseTrac Read More
posted @ 2019-06-12 18:21 findumars Views(1379) Comments(0) Diggs(0) Edit
t widget设置Qt::FramelessWindowHint和Qt::WA_TranslucentBackground, 会出现一个bug: 在最小化后还原时界面停止刷新 Widget with Qt::FramelessWindowHint and Qt::WA_TranslucentBac Read More
posted @ 2019-06-12 18:12 findumars Views(745) Comments(0) Diggs(0) Edit
一 编译QtMqtt库Qt5.10才官方支持MQTT,但我用的Qt版本是5.8.0 Mingw_32BIT, 为了在Qt5.8.0上添加MQTT支持,需要自己编译源码 步骤: (1) git clone https://github.com/qt/qtmqtt.git (2) 使用Qt5.8.0自带 Read More
posted @ 2019-06-12 17:12 findumars Views(1144) Comments(1) Diggs(0) Edit