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

QCoreApplication::flush() has no effect with QScrollbar.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 4.8.3, 5.9
    • Core: Event loop
    • None
    • mac 10.6, ubuntu 16.04

      To update the value of QScrollBar from a loop If QCoreApplication::flush()is used(to return into event loop) QProgress bar is not refreshed (not drawn at the GUI)

      Attached example reproduces this:
      Just run the example and hit start, progress bar is shown but it does not progress at all.

      if processEvent() is used it works but then processEvent() process even thsoe events which are queued and you dont want that to happen at this moment.

        For Gerrit Dashboard: QTBUG-33489
        # Subject Branch Project Status CR V

            paeglis Gatis Paeglis
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes