在main函数第一行加入:
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
鼠标不按下也响应移动事件:
setMouseTracking(true);
posted on 2018-07-31 16:34 万里驰骋 阅读(1742) 评论(0) 编辑 收藏 举报