Results 1 to 2 of 2

Thread: QDockWidget seperator with fixed size dockwidget

  1. #1
    Join Date
    May 2011
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QDockWidget seperator with fixed size dockwidget

    I created a class that inherits from QDockWidget that allows the ability to collapse the widget. When collapsed the widget has a fixed height of 0. I have more than one of these docked to the left side of my application so that there is a separator between the QDockWidgets that allows resizing. When I collapse one of my widgets, it cannot be resized, however the separator still has an enabled QSplitterHandle. If instead of the height, I make the width fixed size, the separator between the QDockWidget area and the central widget loses its handle. I'd like similar behavior for the separator between dock widgets, but it doesn't seem like there is any way for me to access the widget for the separator.

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDockWidget seperator with fixed size dockwidget

    why do you collapse the widgets? In my application, I use "hide" which works perfectly... and you can use the default context menu for showing/hiding DockWidgets.

Similar Threads

  1. Replies: 4
    Last Post: 20th November 2009, 12:25
  2. Replies: 3
    Last Post: 4th September 2009, 12:49
  3. A fixed size window?
    By adorp in forum Qt Tools
    Replies: 4
    Last Post: 25th July 2007, 18:57
  4. Replies: 2
    Last Post: 29th May 2007, 13:55
  5. QDockWidget fixed size?
    By Michiel in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2006, 02:48

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.