Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Empty window when building static QtQuick application
Forum Updated to NodeBB v4.3 + New Features

Empty window when building static QtQuick application

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 652 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
    justAnoob
    wrote on last edited by
    #1

    I got a static build of Qt 5.2.1.
    When i compile a simple hello world application (the one thats created when ceating a new QtQuick application) it works perfectly fine but only on the machine i build it with. On any other machine there is just an empty window.
    Now thats pretty confusing for me.
    I use a Qt resource file with the main.qml in it and therefore changed
    @QtQuick2ApplicationViewer::setMainQmlFile(const QString &file);@

    to use
    @setSource(QUrl(d->mainQmlFile));@

    instead of
    @setSource(QUrl::fromLocalFile(d->mainQmlFile));@

    and in the main.cpp:
    @viewer.setMainQmlFile("qrc:/qml/main.qml");@

    So its really just the simple hello world.
    The behavior that its working on the machine i build it, but not on any other with really confuses me.
    I tried finding a solution via google but only found alot of problems with Qt versions prior 5.2.
    So are there any extra steps to do in order to build QtQuick apps static?

    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