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

QDockWidget title is not displayed correctly when stylesheet is used

XMLWordPrintable

    • 3056b825bd22ddf17deee03c5c43117ad6aa545e

      QDockWidget title text is not displayed correctly when stylesheet is used:

      setStyleSheet("QDockWidget::title {"
                        "background: yellow;"
                        "}"
                        );
      

      If the titlebar is set to vertical position only few letters of title text is shown.
      In horizontal alignment text gets overlapped with the buttons if the text is long enough.

      Please, see the attached picture and the example application.

        1. stylesheet_issue.png
          58 kB
          Antti Yli-Tokola
        2. qtbug41466.zip
          3 kB
          Antti Yli-Tokola
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtcomsupport Qt Support
            anylitok Antti Yli-Tokola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes