Questions tagged [qsplashscreen]

The QSplashScreen widget provides a splash screen (loading screen) that can be shown during application startup.

The QSplashScreen widget provides a splash screen that can be shown during application startup. A splash screen is a widget that is usually displayed when an application is being started.

Splash screens are often used for applications that have long start up times (e.g. database or networking applications that take time to establish connections) to provide the user with feedback that the application is loading.

The most common usage is to show a splash screen before the main widget is displayed on the screen. It is sometimes useful to update the splash screen with messages, for example, announcing connections established or modules loaded as the application starts up etc. The user can hide the splash screen by clicking on it with the mouse.

You should use this tag if your question is related to the use of QSplashScreen widget or its API.

22 questions
4
votes
1 answer

Qt : Display a picture during application loading

I want add a splash screen to an application which is slow to load. I have create a simple app to test. main.cpp : int main(int argc, char *argv[]) { QApplication app(argc, argv); QPixmap pixmap("/home/helene/Images/my_image.png"); if…
helene
  • 1,201
  • 2
  • 18
  • 30
4
votes
2 answers

Qt Splash Screen not showing

I have this code, I want it to show a splash screen since it will be bigger, having had made a kind of timer so it is possible to see the splash screen working. The problem is I don't see the splash screen, but the code will be running while the…
vitimiti
  • 77
  • 1
  • 8
3
votes
1 answer

How to customize the loading screen in Qt?

I need to create a customized and animated loading screen in Qt, and I don't need a progress bar. I want to do something like this: Anyone knows how can I do that? Can I use, for example, QSplashScreen?
KelvinS
  • 2,870
  • 8
  • 34
  • 67
3
votes
2 answers

QSplashscreen background becomes black when I click on it repeatedly

I am using QSplashscreen to display a splashscreen in my application. Usually when I click on the splash screen while my applicaiton is loading the splash sccreen disappears. I saw that the mousepressevent on Qsplashscreen are made to call hide…
sajas
  • 1,599
  • 1
  • 17
  • 39
2
votes
1 answer

How to change the image inside a Splash Screen

I am developing an app that when started needs to check various things like if the modules are found, if a connection to a microcontroller is working, etc. So I decided to make a splash screen where each of these steps show a message. What I thought…
2
votes
1 answer

How to control the positioning of the QSplashscreen?

I have an application which uses 3 splash screens in different scenarios. Problem is that I cannot seem to set a geometry or the positioning of these QSplashScreens. In fact, when the application size changes or the positioning of the application on…
the_naive
  • 2,936
  • 6
  • 39
  • 68
2
votes
1 answer

How to add widget to QSplashScreen after initial show()?

So my intended program flow is this: Create, show() QSplashScreen instance. Initialize other parts of system, including i18n module Add (translated) copyright notice (QLabel) to QSplashScreen instance. The problem is that unless I hide() the…
Matt
  • 223
  • 1
  • 8
1
vote
1 answer

QSplashScreen not showing image pyqt5

I am trying to show splashscreen before loading the mainwindow but a transparent window is displayed instead of the intended image. The splashscreen is supposed to be displayed after import and instantiation loading of Dashboard, which takes a few…
Teddy Ondieki
  • 147
  • 1
  • 11
1
vote
1 answer

How to show taskbar icon when using QSplashScreen

So I have the following code: QString splashImageFilePath = ":/images/Splashscreens/startup.png"; QSplashScreen * splash = new QSplashScreen(); splash->setPixmap(QPixmap(splashImageFilePath)); splash->show(); splash->raise(); This runs fine and…
Sv443
  • 708
  • 1
  • 7
  • 27
1
vote
1 answer

qsplashscreen doesn't displays properly until app.processEvents() is called twice

PyQT4.11 Python 2.7 I have been trying to create a splash screen to display a loading message when a specific tab is selected. When app.processEvents() is called I get a grey box displayed instead of the image, but if I add a second…
PhilFPH
  • 13
  • 4
1
vote
1 answer

Why is QSplashScreen not centered when shown?

I create a QSplashScreen in the constructor of a QMainWindow: MainApp::MainApp() : QMainWindow(), splashScreen(new QSplashScreen) { splashScreen->setFixedSize(350, 120); //splashScreen->move(splashScreen->x()-175, splashScreen->y()-60);…
bur
  • 604
  • 5
  • 20
1
vote
2 answers

Is there any way to make really sure QSplashScreen has been repainted on the screen?

I have a problem that on Linux with Xorg (Ubuntu 14.04) and Qt 5.5.1 QSplashScreen isn't painted until I get to the event loop. Even if I call QApplication::processEvents() multiple times, it still isn't painted, even after 1000 calls, although the…
Ruslan
  • 18,162
  • 8
  • 67
  • 136
1
vote
0 answers

Getting QSplashScreen to work in my application

There is an example in the documentation providing the following code, which seems to be quite simple : int main(int argc, char *argv[]) { QApplication app(argc, argv); QPixmap pixmap(":/splash.png"); QSplashScreen splash(pixmap); …
L. Srd
  • 91
  • 1
  • 4
1
vote
1 answer

Repaint splash screen from thread / disable assertion

Problem I want to use a QTimer to update a derived QSplashScreen that draws a progress bar (using paint commands, not a widget) to estimate when the program will start running. By necessity, this happens prior to the exec call of the…
Nicolas Holthaus
  • 7,763
  • 4
  • 42
  • 97
1
vote
1 answer

Get keypresses in QSplashScreen on OSX

I am trying to get keypresses from QSplashScreen before my main window opens. My splash class inherits from QSplashScreen and overrides the keyPressEvent method. The code below works on Windows but on OSX the keypresses are not intercepted until…
glennr
  • 2,069
  • 2
  • 26
  • 37
1
2