Results 1 to 3 of 3

Thread: How to determine if dock is open or closed

  1. #1
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    136
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to determine if dock is open or closed

    hello,

    the title pretty much says it all - I want to determine whether a dock is open or closed (so I can set a menu checked/unchecked).

    I found that isVisisble() is not a good solution because sometimes I need to query this when the window is not shown.

    Hope there is an easy way to do this that I have missed in the API.

    Thanks,
    Richard

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to determine if dock is open or closed

    Add to your menu action taken from: QDockWidget::toggleViewAction()
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. The following user says thank you to faldzip for this useful post:

    rbp (9th October 2009)

  4. #3
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    136
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to determine if dock is open or closed

    Genius - now I can get rid of my dock sub class!

Similar Threads

  1. Replies: 0
    Last Post: 29th July 2009, 20:13

Tags for this Thread

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.