Results 1 to 3 of 3

Thread: Is there an event or emit with QDockWidget?

  1. #1
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Is there an event or emit with QDockWidget?

    I'm looking for a way to setWindowOpacity only when a dock widget is undocked and unset when it's docked. Is there an event or emit that gets called when a user docks or undocks a QDockWidget?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is there an event or emit with QDockWidget?

    Quote Originally Posted by bitChanger
    I'm looking for a way to setWindowOpacity only when a dock widget is undocked and unset when it's docked. Is there an event or emit that gets called when a user docks or undocks a QDockWidget?

    Thanks.
    QDockWidget emits this signal:

    Qt Code:
    1. void topLevelChanged ( bool topLevel )
    To copy to clipboard, switch view to plain text mode 

    when it is floated/docked. Check the docs on QDockWindow for more details.

  3. The following user says thank you to Chicken Blood Machine for this useful post:

    bitChanger (11th April 2006)

  4. #3
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is there an event or emit with QDockWidget?

    That did it!

    Thank you so much!

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 11:10
  2. QDockWidget magically disapear
    By 1111 in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2009, 11:44
  3. Custom event gets not propagated to the top level widget
    By nightghost in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2009, 09:06
  4. Qt event queue overloading?
    By gct in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2008, 18:39
  5. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36

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.