Mainwindow layout problem / docking problem with QDockWidget?



  • I want the docking to be Ex.
    @
    +-----+-----+-----+
    | | | |
    | | | |
    | | | |
    +-----+-----+-----+
    | | | |
    | | | |
    | | | |
    +-----+-----+-----+
    | | | |
    | | | |
    | | | |
    +-----+-----+-----+
    @

    not like
    @
    +-----+-----+
    | | |
    | | |
    | | |
    +-----+-----+
    | | |
    | | |
    | | |
    +-----+-----+
    @

    How Qt does it.
    I want my QDockWidgets to be able to dock on top left, left middle, bottom left, center top, center, center middle, center bottom, right top, right middle, right bottom.
    Not like Left, Top, Bottom, right how qt does it becase it doen't work with my pro. that I am working on I try and it is buggy same if i do it this way
    @
    splitDockWidget(ui->WidgetDock1, ui->WidgetDock2, Qt::Vertical);
    splitDockWidget(ui->WidgetDock3, ui->WidgetDock2, Qt::Vertical);
    @
    .

    My QDockWidget layout is
    @
    +-----+-----+
    | 1 | 2 |
    | | |
    | | |
    | | |
    +-----+ |
    | 3 | |
    | | |
    +-----+-----+
    @

    if you want to move 1, and 3 to the right sided you can't Also, if you move 2 you can't put it back by 1, and 3.
    The reason i want the dock to be 3x3 in said of 2x2 because:

    1. It is Buggy.
      Ex. you can't move 3 to the right of 2 if 1 is left of 2, and 2 need to be in the center to it can work right.
    2. It will make it easy for the user.
    3. Because I want it to be like it.

    Thank you from reading this I hope that i make it clear enough for you can understand easy.

    EDIT: I moved this thread to the general and desktop forum, Gerolf



  • I think you should post your question on "General and Desktop":http://qt-project.org/forums/viewforum/10/ forum to get a reply as this is QnA Testing Area


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.