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

Updating a QProgressBar while doing long paint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 4.8.x
    • 4.6.2
    • GUI: Painting
    • None
    • Windows

    Description

      We have a lengthy paint for the main widget of our application, like couple tens of seconds at max.

      We have a progress bar in the bottom status bar that show how the painting process is going. This worked fine under Qt3. Now with Qt4, we have a crash inside QTransform::type (we can plainly see that the 'this' is zero at that point).

      The overall sequence of events is this:

      • a QPainter gets created
      • we start painting with it
      • we call QProgressBar::setValue() (works fine)
      • next painting operation on the original QPainter results in a crash

      What can we do to have a working progress bar while painting in Qt4 ?

      Attachments

        1. qt-11886.cpp
          1 kB
          Philippe Payant
        2. qt-11886.pro
          0.6 kB
          Philippe Payant
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            firedomain Qt Graphics Team (Inactive)
            philtherobot Philippe Payant
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes