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

qwidget, disable updatesEnabled, do visual change, enable updatesEnabled does not work on QMainWindow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.6, 6.2.0 Beta4
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      In document https://doc.qt.io/qt-5/qwidget.html#updatesEnabled-prop, there is below sample code:

      setUpdatesEnabled(false);
      bigVisualChanges();
      setUpdatesEnabled(true);

      Used that in QMainWindow, but the visual change does not reflect immediately after setUpdatesEnabled(true); is called. Additionally calling repaint or force a resize can make the visual change appears. Please see attached sample

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            yifei Yi Fei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes