Results 1 to 3 of 3

Thread: selecting/activating tabify'd DockWidget?

  1. #1
    Join Date
    Oct 2009
    Location
    Maryland
    Posts
    16
    Thanks
    3
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default selecting/activating tabify'd DockWidget?

    I've got several QDockWidgets stacked up (with tabifyDockWidget()) in the right hand dock widget area. I'd like to programmatically select which of the tabs is selected (on top, activated) both at application start-up time and in response to user keyboard input. Is there a way to set a particular QDockWidget to be selected?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: selecting/activating tabify'd DockWidget?


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

    iraytrace (19th February 2010)

  4. #3
    Join Date
    Oct 2009
    Location
    Maryland
    Posts
    16
    Thanks
    3
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: selecting/activating tabify'd DockWidget?

    Thanks! As it turns out, QWidget::activateWindow() doesn't do the job. However, QWidget::raise() was necessary and sufficient.

Similar Threads

  1. Redesigning a DockWidget
    By Dr. Norbert Prang in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2011, 11:55
  2. Activating multiple windows
    By lixo1 in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2009, 20:54
  3. QTreeWidget in a Dockwidget
    By LordQt in forum Qt Programming
    Replies: 3
    Last Post: 9th September 2007, 07:09
  4. QToolBar and DockWidget
    By baray98 in forum Qt Programming
    Replies: 3
    Last Post: 15th August 2007, 21:15
  5. DockWidget ?
    By allensr in forum Qt Programming
    Replies: 8
    Last Post: 30th January 2007, 23:58

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.