Results 1 to 4 of 4

Thread: Detect if the mouse is clicked outside GroupBox

  1. #1
    Join Date
    May 2017
    Posts
    15
    Qt products
    Qt5
    Platforms
    Windows

    Default Detect if the mouse is clicked outside GroupBox

    Hello!

    I am looking for an event if the mouse is clicked outside of the groupBox. I tried FocusOutEvent but was not able to get the event. Any kind of help would be greatly appreciated!

    Thank you!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Detect if the mouse is clicked outside GroupBox

    What do you need that for?
    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.


  3. #3
    Join Date
    May 2017
    Posts
    15
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Detect if the mouse is clicked outside GroupBox

    When I press a toolbox I get a groupbox Popup and I want to close the groupbox when I clicked outside of it.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Detect if the mouse is clicked outside GroupBox

    In that case make your popup a Qt::ToolTip instead of Qt::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.


Similar Threads

  1. Replies: 12
    Last Post: 17th June 2013, 21:20
  2. How to detect when a QDialog is clicked anywhere?
    By MarcCals in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2011, 20:24
  3. Replies: 5
    Last Post: 23rd October 2010, 14:17
  4. how to replace mouse clicked to tid
    By wagmare in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 7th October 2008, 10:40
  5. Replies: 11
    Last Post: 9th March 2006, 09:57

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.