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

It seems QSplashScreen doesn't work with WA_TranslucentBackground

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 4.6.3, 4.7.1
    • None
    • WindowsXP, qt4.6.3, mingw-gcc
      Mac

    Description

      I just recognized that QSplashScreen doesn't work correctly with setting setAttribute(Qt::WA_TranslucentBackground)
      ... I tried to show a splashscreen with a *.png (with transparent corners)
      ... when I set TranslucentBackground it is just a black rect

      QPixmap pm(":/resources/images/splash.png");
      QSplashScreen* splash = new QSplashScreen(pm,Qt::WindowStaysOnTopHint);
      splash->setAttribute(Qt::WA_TranslucentBackground);
      splash->show();

      Atm I can only test it on my WinXP, so I don't know if it is something OS depending or general ...

      If I do something similar with the same *.png and QLabel, it works as expected:
      QLabel* testLabel = new QLabel(f,Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
      testLabel->setAttribute(Qt::WA_TranslucentBackground);
      testLabel->setPixmap(pm);
      testLabel->show();

      Attachments

        Issue Links

          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
              s.langer Stefan Langer
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes