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

Reg 5.9.6 -> 5.11.1: QStyle::drawControl(QStyle::CE_ProgressBar) fails on Mac

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.1, 5.12.0 Beta 4
    • Fix Version/s: None
    • Component/s: Widgets: Styles
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      What you will see in the attached demo application is a QStyledItemDelegate that overrides paint() and draws a progress bar with the following call:

      option.widget->style()->drawControl(QStyle::CE_ProgressBar, &optProgress, painter);

       

      This is what it looks like on Mac with Qt 5.9.6, and same on Windows with any Qt version:

       

       

      And this - on Mac with Qt 5.11.1. The two progress bars should be identical, but they're not. And I don't think either of them should be drawn in the "disabled" state.

      When I started fiddling with the demo code, neither of the progress bars was being displayed at all, the table looked blank. Unfortunately, I changed something in the progress bar options, and I can't find a way to make the bars invisible again. But I guess it's the same bug, and the behavior of the demo program is sufficiently broken already:

       

        Attachments

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

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            alexium Alex
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes