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

QStyle::drawControl and QStyle::CE_DockWidgetTitle

    XMLWordPrintable

Details

    Description

      When drawing a titlebar by passing in the Qt::Tool flag to the titleBarFlags of QStyleOptionTitleBar as shown in the example below, then the titlebar does not look like the titlebar of a tool window.

      void Wid1::paintEvent(QPaintEvent *)
      {

      QStyleOptionTitleBar o;
      o.init(this);
      o.text = "Title";
      o.titleBarFlags = Qt::Tool;
      QPainter painter(this);
      style()->drawComplexControl(QStyle::CC_TitleBar, &o, &painter, this);
      }

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes