Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

How to use InverseMouseArea?



  • Hi all:
    I have a item ,I want to do something when mouse click outside of the item .I google it ,find that inversemousearea may help me ,I use it but it never work .Anyone have used InverseMouseArea ? help me



  • On_mouse_click you can compare the clicked position with the item boundaries. if clicked position outside the boundaries you can do what you want.


Log in to reply