Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Prevent QMainWindow from dragging by mouse

Prevent QMainWindow from dragging by mouse

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 810 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alan73
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      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.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved