Results 1 to 6 of 6

Thread: Unable to minize space b/n colored QWidget and size adjustment pane of QDockWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Unable to minize space b/n colored QWidget and size adjustment pane of QDockWidge

    For each panel that is not an out-of-the-box widget you create a HeaderWidget/BodyWidget/FooterWidget class derived from QWidget (or whatever). In the constructor you build the UI (sub-widgets and layout) that the widget should contain. That construction code would be the same as whatever you intended to be in the dock widgets.

    In your main window constructor you create an object of each of the three widgets classes, and add them to a QSplitter and add that QSplitter to the main window layout to make your main UI.

    All of that can be done with Designer or by hand coding. There are buckets of hand-coded examples in the documentation.

  2. The following user says thank you to ChrisW67 for this useful post:

    rawfool (29th November 2011)

Similar Threads

  1. creating a QWidget in the global space
    By wambagilles in forum Qt Programming
    Replies: 4
    Last Post: 8th May 2011, 18:54
  2. Replies: 2
    Last Post: 6th April 2010, 21:42
  3. font size in Application Output Pane
    By piotr.dobrogost in forum Qt Tools
    Replies: 0
    Last Post: 4th August 2009, 20:55
  4. QDockWidget size
    By user in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2009, 20:35
  5. QDockWidget Size
    By kiker99 in forum Qt Programming
    Replies: 9
    Last Post: 31st March 2007, 16:15

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
  •  
Qt is a trademark of The Qt Company.