Results 1 to 9 of 9

Thread: How to detect when a QDialog is clicked anywhere?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to detect when a QDialog is clicked anywhere?

    Quote Originally Posted by MarcCals View Post
    No, We don't want a QSplashScreen, what we need is a PopUp to notify to user that request to retrieve some files has been received, We have implemented it with a QDialog. Ten seconds after appearing it hides automatically, but we would like that the user can click Popup anywhere to hide it if is disturbing, before the 10 seconds.
    If you want a popup, then why don't you use Qt::Popup window flag with a regular widget?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to detect when a QDialog is clicked anywhere?

    I would try QWidget::grabMouse.

  3. #3
    Join Date
    Feb 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to detect when a QDialog is clicked anywhere?

    Using QWidget::grabMouse, It doesnt works because then no other widget except the PopUp receive mouseEvent. If you have another dialogs o widgets showed, they not receive mouseEvents.

    Finally I have implemented it installing even widget to all widget ins the PopUp.

    Thanks to all for your help,

Similar Threads

  1. Replies: 9
    Last Post: 25th March 2011, 21:22
  2. QDialog.exec() exiting without calling QDialog::accept()
    By doggrant in forum Qt Programming
    Replies: 3
    Last Post: 2nd February 2011, 11:35
  3. Replies: 5
    Last Post: 23rd October 2010, 14:17
  4. closing a Qdialog called from a Qdialog
    By OverTheOCean in forum Qt Programming
    Replies: 3
    Last Post: 28th September 2009, 08:02
  5. Detect which OS?
    By December in forum Qt Programming
    Replies: 6
    Last Post: 24th May 2007, 23:01

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
  •  
Qt is a trademark of The Qt Company.