Results 1 to 1 of 1

Thread: Never receive MouseButtonRelease event when clicking on "title bar" of QDialog

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Never receive MouseButtonRelease event when clicking on "title bar" of QDialog

    I'm trying to implement a special drag-and-drop type behavior with QDialog. I want the drop action to take place when the user releases the mouse. When clicking in the title bar area of the QDialog I'm getting a QEvent::NonClientAreaMouseButtonPress, but I never get the corresponding QEvent::NonClientAreaMouseButtonRelease.

    Does anyone know how to receive MouseButtonRelease events when the user clicks in the title bar area of a QDialog?

    Relevant code is attached.

    Thanks!
    Scott
    Attached Files Attached Files

Similar Threads

  1. Replies: 1
    Last Post: 3rd May 2010, 09:25
  2. Replies: 4
    Last Post: 19th February 2009, 16:56
  3. QDialog - how to stop hide on "ESC"?
    By will49 in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2008, 16:40
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. Window title bar and "X" button
    By markcole in forum Qt Programming
    Replies: 3
    Last Post: 20th December 2007, 20:58

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.