Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Splashscreen not compatible with embedded?
Forum Updated to NodeBB v4.3 + New Features

Splashscreen not compatible with embedded?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tsaGT Offline
    tsaGT Offline
    tsaG
    wrote on last edited by tsaG
    #1

    Hi,

    I want to integrate a Splashscreen my App (embedded and QML) using a QSplashScreen. I followed the QSplashscreen example but I get the error:

    @
    Application stops with 'EGLFS: OpenGL windows cannot be mixed with others.'
    @

    Is splashscreen not compatible with embedded apps?

    Here is my code:

    @
    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    QPixmap pixmap("qrc:/images/logo.png");
    QSplashScreen splash(pixmap);
    splash.show();

    QQuickStyle::setStyle("Material");
    

    QQmlApplicationEngine engine;

    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

    return app.exec();
    

    }
    @

    Actually, the only thing I need is a fullsize loading screen. Is there a better way?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tirupathi Korla
      wrote on last edited by Tirupathi Korla
      #2

      Was not working for me too and got the same error. Try http://doc.qt.io/qt-5/qtpurchasing-qthangman-qml-qthangman-main-qml.html .

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Schluchti
        wrote on last edited by
        #3

        For which platform? Android or iOs? As far as I know there is no platform independent solution. That's because it takes some time until the Qt application gets the control. So if you would add the splashscreen to the Qt application it would probably not make much sense as the heavy lifting is already done and the application is (almost) done loading. So you need to invoke the splashscreen before.

        If you are developing for android you can take a look at this: https://medium.com/@benlaud/complete-guide-to-make-a-splash-screen-for-your-qml-android-application-567ca3bc70af#.okatgw5e4

        By the way, the flickering that the author talks about is almost gone in Qt 5.7. They introduced a pretty cool thing in Qt 5.7 which lets you hide the splashscreen when the application is done loading. There is a really interesting video available where Bogdan talks about the cool new Android features in 5.7. Just search for "KDAB blog" on google...it's one of the latest blog entries (sorry don't have a direct link but you can find it very easily on the blog ;)). It's a really cool video...he also talks about JNI. So if you haven't seen it then I can really recommend it.

        Want to read more about Qt?

        https://gympulsr.com/blog/qt/

        Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved