Results 1 to 3 of 3

Thread: QDockArea size hint

  1. #1
    Join Date
    Mar 2006
    Location
    Troy, Michigan, USA
    Posts
    17
    Thanks
    2
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default QDockArea size hint

    I am using Qt 3.3 and would like the dock area to control the size of the QDockWindows that are placed in it, not have the dock window resize the dockarea. Does anyone know if this is possible?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDockArea size hint

    You should be able to do it by putting constrains on sizes of those dock windows.

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

    ksierens (5th April 2006)

  4. #3
    Join Date
    Mar 2006
    Location
    Troy, Michigan, USA
    Posts
    17
    Thanks
    2
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QDockArea size hint

    The strange part is that if I resize the dock area with the mouse, even slightly, the dock windows will not change the size of the dock area.

    Is there a way to progmatically set the initial size of the dock area in the same way?

    I tried to set the maximum size for the dockarea (right), but when the central widget is resized, the widgets in the dock area are set to my maximum size I set, but the dock areas position does not respect this width. (as shown in the attached image)

    Attached Images Attached Images

Similar Threads

  1. Text size
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 2nd October 2008, 21:56
  2. How to find best size for QTableWidget?
    By plamkata in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2008, 19:07
  3. QT-wince and QHttp::readAll() trouble....
    By AcerExtensa in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 12th June 2008, 09:40
  4. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  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.