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

It seems QSplashScreen doesn't work with WA_TranslucentBackground

XMLWordPrintable

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

      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();

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes