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

Make the dockWidgetArea property available for use in style sheets also outside Creator and Designer

    XMLWordPrintable

Details

    Description

      When creating a QMainWindow with some QDockWidgets on each side in Designer and adding the stylesheet below to it, then the corners will be rounded in Designer. When compiling an application using this form and stylesheet however, the corners will not be rounded anymore. It would be nice if the dockWidgetArea property was available outside Designer as well.

      QDockWidget{
      color:#EDE9DB;
      font: bold 12px "Arial";
      padding: 0px 0px 0px 0px;
      border: 1px outset rgba(212,190,153,120);
      color: rgba(212,190,153,255);
      }
      QDockWidget::title ,QDockWidget:floatable::title{
      padding-left: 3px;
      padding-top: 3px;
      background:qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(144, 144, 139, 255), stop:0.58 rgba(134, 140, 142, 255), stop:0.581 rgba(129, 129, 128, 255), stop:1 rgba(59, 59, 59, 255));
      border: 1px ridge rgba(212,190,153,120);
      padding-left: 8px;
      text-align:left;
      }
      QDockWidget[dockWidgetArea="1"]::title {
      border-top-right-radius:7px;
      border-top-left-radius:0px;
      border-bottom-left-radius:0px;
      border-bottom-right-radius:0px;
      }
      QDockWidget[dockWidgetArea="2"]::title {
      border-top-right-radius:0px;
      border-top-left-radius:7px;
      border-bottom-left-radius:0px;
      border-bottom-right-radius:0px;
      }
      QDockWidget[dockWidgetArea="4"]::title {
      border-top-right-radius:0px;
      border-top-left-radius:0px;
      border-bottom-left-radius:0px;
      border-bottom-right-radius:0px;
      }
      QDockWidget[dockWidgetArea="8"]::title {
      border-top-left-radius:7px;
      border-top-right-radius:7px;
      border-bottom-left-radius:0px;
      border-bottom-right-radius:0px;
      }

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes