Important: Please read the Qt Code of Conduct -

Prevent QMainWindow from dragging by mouse

  • Hello!

    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?

  • Qt Champions 2017

    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.

Log in to reply