Results 1 to 2 of 2

Thread: QDockWidget's

  1. #1
    Join Date
    May 2006
    Posts
    7
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QDockWidget's

    Hi,

    Does anyone know to get information from the tabbed widget that results from nesting many dock widgets together? In particular I need to know which tab is the current tab, when the current tab changes...

    Thanks.

  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: QDockWidget's

    Most probably the tabwidget containing the docs is the parent widget of each dock, so using QObject::parent() together with qobject_cast should get you access to QTabWidget API.

Similar Threads

  1. Selecting tabbed QDockwidgets
    By trskel in forum Qt Programming
    Replies: 3
    Last Post: 25th September 2007, 17:22
  2. QDockWidgets without central widget
    By JoeMerchant in forum Qt Programming
    Replies: 17
    Last Post: 8th August 2007, 14:52
  3. centralWidget and QDockWidgets in designer
    By momesana in forum Qt Tools
    Replies: 1
    Last Post: 18th December 2006, 11:56
  4. How to set initial QDockWidget's size?
    By rajesh in forum Qt Programming
    Replies: 4
    Last Post: 16th November 2006, 15:49
  5. QDockWidget dockable with other QDockwidgets
    By fellobo in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2006, 10:06

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.