Results 1 to 3 of 3

Thread: QDockWidget size

  1. #1
    Join Date
    May 2007
    Location
    Australia
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QDockWidget size

    I would like to know if there were any updates regarding the setting of initial size for the dockWidget.
    I found a previous post http://www.qtcentre.org/forum/f-qt-p...-size-556.html that mentioned there will be a fix in version 4.2.
    I use Qt version 4.4.3 but the only way I can find to set initial size is by using setMinimumWidth() which I don't want to do (since I want to be able to resize the widget).

    In a different post there was a link to a closed bug report http://trolltech.com/developer/task-...ntry&id=146752
    but when I resize my dockWidget (horizontally or vertically) than hide and show it, the widget goes back to it's original size (this only happens for docked windows) is there something I should do for the window to remember it's state?

  2. #2
    Join Date
    May 2007
    Location
    Australia
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDockWidget size

    After a bit of searching I found in the Qt examples Main Windows->Dock Widgets the same problem of resizing-hiding-showing the dock widget and getting the original size.
    Also http://trolltech.com/developer/task-...ntry&id=173854 and http://trolltech.com/developer/task-...ntry&id=235188
    mention a fix scheduled for 4.5.0.

    As for setting initial size for the dockWidget I found http://trolltech.com/developer/task-...ntry&id=170298 which doesn't have a fix. All I want to do is to get my dockWidget to expand to full screen (since my central widget is empty).

    Can anyone provide any more info or suggestions?

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QDockWidget size

    You can check how this bug was worked around in QxtDockWidget.
    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    user (13th January 2009)

Similar Threads

  1. QT-wince and QHttp::readAll() trouble....
    By AcerExtensa in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 12th June 2008, 09:40
  2. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  3. Default size of a QListWidget inside a QDockWidget
    By rakuco in forum Qt Programming
    Replies: 0
    Last Post: 25th July 2007, 08:01
  4. QDockWidget Size
    By kiker99 in forum Qt Programming
    Replies: 9
    Last Post: 31st March 2007, 16:15
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.