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

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.6, 6.2.0 Beta4
    • None
    • 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

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes