Problems with layout settings, especially borders



  • Hello guys,

    I am new to the community and Qt. After doing the tutorial series to learn more about Qt I decided to step into the next level, in fact, that I am creating a small SQL-application in form of a lightweight studio etc..
    After working through the documentation, I came across a "not yet solvable" problem.
    That means for example:

    As you can see on the picture below, there is a menu bar, a toolbar, a tab widget and two dock widgets inside the main widget.
    0_1513509420669_dfab571f-0d31-47d8-8b6d-7d4b3bf6506d-grafik.png
    Lets have a look at the first one. Below the toolbar there is a gap, border, space whatever between this toolbar and the dock widget. The same inside the other dock widget.

    I set the stylesheet inside the "MainWindow" to have a central place to design everything like this:
    0_1513509828698_e207738b-a853-41e9-bdb8-ccebbc5af4bf-grafik.png

    Here are also the layout settings of the main window component:
    0_1513509943605_2e65f3cf-caeb-4c06-bc61-9808e916a2a7-grafik.png

    Do you guys have any idea to remove this spaces/borders etc. ?
    Really thank you for your time.

    Greetings


  • Qt Champions 2017

    Hi
    Not sure what actual widget that does it but with

    QWidget {
    Border : 0px;
    }
    

    on mainwindow it goes away.

    So its something inside DockWidget but i didn't dig around to find exact name.

    Update:
    Seems to be the title

    QDockWidget::title {
    background: red;
    }

    alt text



  • @mrjj Thank you very much... It worked !!!


  • Qt Champions 2017

    @Gr3enP0ison
    Super :)
    And welcome to the forums.


Log in to reply
 

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