Results 1 to 2 of 2

Thread: qdesinger and docked widgets

  1. #1
    Join Date
    Mar 2010
    Posts
    107
    Thanks
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default qdesinger and docked widgets

    Hi
    I have an application main window and in designer I have added a docked widget. Inside the docked widget I added a QListWidget and added some items.
    When I run the application the docked widget is very narrow and I cannot see the list unless I resize the docked window.

    I thought that the docked window took its size from its contents.

    I hand coded the same application and the docked widget appears with the correct size i.e. the size of the largest list item

    Why is this?

    Graham

  2. #2
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qdesinger and docked widgets

    You may look at the minum size of the widgets inside your dock widget. Designer may have set it to 0.

Similar Threads

  1. how to hide the title bar when a QDockWidget is docked?
    By oscar721 in forum Qt Programming
    Replies: 5
    Last Post: 23rd January 2014, 20:16
  2. Docked Widget Menu
    By Chuk in forum Qt Programming
    Replies: 6
    Last Post: 3rd July 2013, 14:12
  3. Creating a docked App Bar for Linux.
    By peddler38 in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2008, 20:04
  4. Docked main window
    By ahmed963 in forum Qt Programming
    Replies: 2
    Last Post: 1st August 2008, 21:45
  5. Help with Docked Widget!
    By drake1983 in forum Newbie
    Replies: 8
    Last Post: 5th June 2007, 05:10

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.