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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.2
    • 5.11.0, 5.11.1
    • None
    • macOS 10.13.5, Qt 5.11.1
    • 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

            vestbo Tor Arne Vestbø
            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