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

QPainter::rotate() + drawComplexControl(QStyle::CC_ComboBox,...) is not drawn rotated on macOS

    XMLWordPrintable

Details

    • macOS

    Description

      When ComboBox is drawn and rotated in the following way, it does not appear to be rotated on macOS but it does on Windows.

      QPainter painter;
      ...
       // Create the style option.
       QStyleOptionComboBox option;
       option.initFrom(this);
      
       painter.rotate(-90);
      
       style()->drawComplexControl(QStyle::CC_ComboBox, &option, &painter);
      

      How to reproduce
      1. Use qtbug98935ーmdi-noteRotate.zip ( Modified version of Qt mdi example )
      2. Click New button

      On macOS

      On Windows

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes