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

QSplashScreen and QLabel not painting correctly on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.2
    • GUI: Painting
    • None
    • Linux Mint
    • Linux/X11

    Description

      QLabel and QSplashScreen share the same problem of not painting when needed on Linux although they behave perfectly on Windows.  For a QLabel calling QApplication::processEvents() should cause it to paint immediately. For QSplashScreen calling repaint() should cause it to paint immediately because it calls processEvents() internally.

      Attached is demo code using QSplashScreen (however the behaviour would be the same if using QLabel) If run on Windows, the window is painted and you see the message "You should see this" immediately. When run on Linux the message is not displayed until 10 seconds later when the demo method Test::lengthyProcess() completes.

      Attachments

        1. main.cpp
          0.2 kB
        2. PaintBug.pro
          0.3 kB
        3. test.cpp
          0.9 kB
        4. test.h
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            chortlemortal David Casper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes