Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Prevent QMainWindow from dragging by mouse
alan73 last edited by
I have a mosaic of QMainWindow-s inside of QWorkspace. In Qt3 I was able to drag window only by clicking on its title. In Qt4 I can make it by dragging any point inside the window, which is not good for me, because I want this event to be handled in another way.
How can I emitate Qt3 handling of dragging?
Try using the evenFilter to inspect the events and take actions what do you want. or Try to use the event(.....) method to catch the events and give appropriate behaviour.