Results 1 to 2 of 2

Thread: Keep the same ratio of left/right dock when QMainWindow resizes

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation Keep the same ratio of left/right dock when QMainWindow resizes

    Hi,
    There is way to have the left and right docks stay at the same width ratio when the QMainWindow resizes or a custom resizeEvent code has to be written to have this behavior ?
    Actually the window stay at the same width when the QMainWindow resize.
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Keep the same ratio of left/right dock when QMainWindow resizes

    I think you need to handle this with custom code.

    Cheers,
    _

Similar Threads

  1. QMainWindow resize with correct aspect ratio
    By mark_tn in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2013, 18:44
  2. Replies: 6
    Last Post: 16th April 2013, 16:13
  3. Dock widget allowed areas in QMainWindow
    By jpalbertini in forum Qt Programming
    Replies: 0
    Last Post: 28th January 2013, 11:36
  4. Customize dock widgets behavior in QMainWindow
    By justastro in forum Qt Programming
    Replies: 0
    Last Post: 2nd April 2012, 03:45
  5. forcing dock windows to dock?
    By eric_vi in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2009, 15:32

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.