Getting QSplashScreen to work in my application
<p>There is an example in the documentation providing the following code, which seems to be quite simple :</p>

<pre><code>int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QPixmap pixmap(":/splash.png");
    QSplashScreen splash(pixmap);
    splash.show();
    app.processEvents();
    ...
    QMainWindow window;
    window.show();
    splash.finish(&amp;window);
    return app.exec();
}
</code></pre>

<p>Now the thing is that I am using QApplication, create an engine and open my QML files like this:</p>

<pre><code>engine-&gt;load(QUrl(QLatin1String("qrc:/qml/main.qml")));
</code></pre>

<p>And from the documentation I cannot really understand how to go the QMainWindow way like in the example, without passing a URL of the file as an argument (there is no such function available). Do I have to write a C++ class derived from QMainWindow or something like this? Or am I missing another important point?
I am furthermore happy about any other suggestions of getting QSplashScreen to work.</p>