QSpalshScreen Scale Properties ?



  • I have to Scale the Splash Screen for different Resolution can any one help me



  • The QSplashScreen takes in a QPixmap. You can scale the pixmap to whatever resolution you want first and then assign to splash screen. Just tried and works fine ...

    @
    QPixmap pixmap("c:/design.jpg");
    QSplashScreen splash(pixmap.scaled(1000,1000));
    // the orig pixmap was 640x360 and shows up in that size if I don't scale
    splash.show();
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.