Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Different Mouse Behaviours
stabilizer last edited by
I want to create a mouse event in a restricted area.
First i created a mainwindow and a frame inside the mainwindow. Now i want to define a mouse event which is available only frame inside.
How can i achieve this? I need your advices.
https://i.hizliresim.com/vJmA74.jpg //ui screenshoot
Thanks for your attention
Either re-implement the various mouseXXXevent methods of the widgets you want to customise or use an event filter depending on what you would like to do.
It's explained in The Event System chapter of Qt's documentation.