Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] QQmlApplicationEngine/QQuickWindow slower than qmlscene
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QQmlApplicationEngine/QQuickWindow slower than qmlscene

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.9k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jflatt
    wrote on last edited by
    #1

    I have an application that sets some dynamic properties in a qml scene. The qml document has several nested XmlListModels. When the window is shown, the data seems to stream in and layout slowly, while qmlscene on the same files is quite a bit faster. I notice qmlscene CPU usage hits 13% which is spiking one cpu core, while the slower application goes up to 25%, spiking two cpu cores. At first glance Qt Creator QML profiler doesn't appear to show anything out of the ordinary. This is a bit of the code, the rest of the application is too large to post here. Is there something common I should watch out for here? Thanks!

    @
    QQmlApplicationEngine* engine = new QQmlApplicationEngine(this);
    engine->load(QUrl("qrc:/ReportViewer.qml"));
    QObject *topLevel = engine->rootObjects().value(0);
    QQuickWindow window = qobject_cast<QQuickWindow >(topLevel);
    window->setProperty("report", "qrc:/Report.qml");
    QObject
    item = window->findChild<QObject
    >("reportObject");
    item->setProperty("dataSource", "data.xml");
    window->show();
    @

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jflatt
      wrote on last edited by
      #2

      I think it was just the qml debugger running under Qt Creator. Once I ran a release build it was quick again.

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        If you need no more help on this issue, please add [solved] to the topic so everyone can see that this problem is solved. You can do that by editing your first post.

        Qt Certified Specialist
        www.edalsolutions.be

        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