Results 1 to 1 of 1

Thread: QDockWidget resizeDocks function

  1. #1
    Join Date
    Jan 2011
    Qt products

    Default QDockWidget resizeDocks function


    I'm trying to programatically resize MainWindow dock widgets. I read that in Qt 5.6 resizeDocks function was introduced

    I did a quick test to see how it works (I'm using Qt 5.7.0):

    Qt Code:
    1. resizeDocks({ui->blueWidget, ui->yellowWidget}, {20 , 60}, Qt::Vertical);
    2. setCentralWidget(0);
    3. setDockNestingEnabled(true);
    To copy to clipboard, switch view to plain text mode 

    Unfortunately its not working at all
    Anyone knows whats wrong ? How to pragmatically resize dock widgets ?
    Attached Files Attached Files

Similar Threads

  1. QDockWidget inside QDockWidget
    By mqt in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2013, 12:57
  2. pass member function as argument int template function
    By bibhukalyana in forum General Programming
    Replies: 1
    Last Post: 12th March 2013, 07:05
  3. Replies: 11
    Last Post: 5th September 2012, 20:47
  4. Replies: 1
    Last Post: 7th December 2010, 21:46
  5. Replies: 0
    Last Post: 10th March 2010, 08:13

Tags for this Thread


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.