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.
    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:

    Here are also the layout settings of the main window component:

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


  • Qt Champions 2016

    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.

    Seems to be the title

    QDockWidget::title {
    background: red;

    alt text

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

  • Qt Champions 2016

    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.