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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.11.2
    • 5.11.0, 5.11.1
    • None
    • macOS 10.13.5, Qt 5.11.1
    • macOS

      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.

        1. test.zip
          4 kB
          Robert Wong
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes