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

QStyleOptionProgressBar is drawn in the wrong rectangle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.4
    • Widgets: Layout
    • None
    • macOS monterey 12.6.
      Qt 6.2.4
    • macOS

    Description

      I'm trying to draw a progress bar in the QTableView using QStyleOptionProgressBar.  But the progress bar is always drawn in the wrong rectangle.

       
      I attached the screenshot and the demo that will help to reproduce the issue.

      The same code works well on Windows.

       

      Attachments

        1. Snipaste_2022-10-21_22-04-04.png
          7 kB
          zhao ruixiang
        2. untitled.7z
          4 kB
          zhao ruixiang

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            martinzrx zhao ruixiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: