Results 1 to 3 of 3

Thread: QGroupBox visibility change trapping

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    12
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default QGroupBox visibility change trapping

    Hello,
    how can I trap when a QGroupBox item is shown/hidden?

    I've successfully used the on_objectName_signalName() for other widgets but is there any on_myQGroupBox_someSignal() ?

    Thanks.

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

    Default Re: QGroupBox visibility change trapping

    You can intercept show or hide events using event filters. Take a look at QObject::installEventFilter().
    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. The following user says thank you to wysota for this useful post:

    lurky (10th September 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    12
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGroupBox visibility change trapping

    That worked great!
    Thanks.

Similar Threads

  1. how to change QGroupBox frame color? (Qt4)
    By high_flyer in forum Qt Programming
    Replies: 7
    Last Post: 9th May 2006, 13:48

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.