Results 1 to 3 of 3

Thread: Catch mouse click to hide item

Hybrid View

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

    Default Re: Catch mouse click to hide item

    When you show the popup, make it a child of a MouseArea item which covers the whole screen/window. Catch clicks on this mouse area and hide the popup.
    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. The following user says thank you to wysota for this useful post:

    joko (10th November 2014)

  3. #2
    Join Date
    Oct 2014
    Posts
    104
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Catch mouse click to hide item

    Quote Originally Posted by wysota View Post
    When you show the popup, make it a child of a MouseArea item which covers the whole screen/window. Catch clicks on this mouse area and hide the popup.
    As always, you're the best!

Similar Threads

  1. Replies: 6
    Last Post: 20th July 2012, 22:50
  2. Replies: 2
    Last Post: 16th July 2012, 12:40
  3. Catch click Hyperlink event
    By summer_of_69 in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2009, 19:43
  4. Catch item changed
    By nina1983 in forum Qt Programming
    Replies: 2
    Last Post: 18th July 2008, 14:40
  5. Catch click/unclick event on QMainWindow border
    By thomaspu in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2008, 23:09

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.