在main函数第一行加入:

QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

鼠标不按下也响应移动事件:

setMouseTracking(true);

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-11-20
  • 2021-09-11
  • 2022-01-29
  • 2021-11-01
  • 2021-09-04
  • 2021-08-21
猜你喜欢
  • 2021-10-14
  • 2021-06-09
  • 2021-09-19
  • 2022-12-23
  • 2021-06-19
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案