Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems with layout settings, especially borders
Qt 6.11 is out! See what's new in the release blog

Problems with layout settings, especially borders

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gr3enP0ison
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      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

      G 1 Reply Last reply
      3
      • mrjjM mrjj

        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

        G Offline
        G Offline
        Gr3enP0ison
        wrote on last edited by
        #3

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

        mrjjM 1 Reply Last reply
        0
        • G Gr3enP0ison

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Gr3enP0ison
          Super :)
          And welcome to the forums.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved