Qt 5, get the mouse position in a screen

前端 未结 6 1326
难免孤独
难免孤独 2020-12-17 10:37

First of all, I\'d like to mention that I found that related post How to get the mouse position on the screen in Qt? but it \"just didn\'t work\" for me. I made some tests,

6条回答
  •  借酒劲吻你
    2020-12-17 10:53

    Sice it seems that it can't be done with Qt (at least with my system configuration, and it seems that also in Windows) I decided to use the libX11 to make that implementation, which works like charm.

    It's not an ideal solution because I wanted to only use Qt, but it works.

提交回复
热议问题