Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33367

QMainWindow separator can not have different width for horizontal and vertical

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 4.8.5, 5.4.0
    • Fix Version/s: None
    • Component/s: GUI: Workspace
    • Labels:
      None
    • Environment:
      Win7

      Description

      I want to create a QMainWindow with two QDockWidget's.
      One to the left and one in the top area.
      Further both separator shall have a different width. This is not possible.

      I tried the following stylesheets:
      A)
      -----------------------
      QMainWindow::separator{
      width:5px;
      height:20px;
      }

      B)
      -----------------------
      QMainWindow::separator:horizontal {
      background-color:blue;
      width:5px;
      height:5px;
      }
      QMainWindow::separator:vertical {
      background-color:black;
      width:20px;
      height:20px;
      }

      In case A) the width of both the horizontal and vertical separator are 20 pixel.
      In case B) the width of both is 20 pixel too but each separator has the associated color.
      I also tried different combinations of case B) where only height or width was defined.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            zthawk ZTHawk
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes