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

Custom QWidget does not update unless size is changed (macOS only)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.0, 5.11.1
    • Fix Version/s: 5.11.2
    • Labels:
      None
    • Environment:
      macOS 10.13.5, Qt 5.11.1
    • Platform/s:
      macOS

      Description

      On macOS, if I create a QWidget with custom paintEvent(), the widget does not update unless the widget size is changed. This is a serious bug and a show stopper for me! Please check the included example code. When you click "Green" button, the widgets is supposed to turn green. But it only turns to green when you change the size of the window. Qt 5.10 and older version does not have this issue.

        Attachments

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

          Activity

            People

            • Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              wtbuck Robert Wong
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes