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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes