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. QML2 application shows no content if it runs outside Qt Creator. QM1 application does.
Forum Updated to NodeBB v4.3 + New Features

QML2 application shows no content if it runs outside Qt Creator. QM1 application does.

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 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.
  • R Offline
    R Offline
    rubikon
    wrote on 14 Mar 2013, 10:19 last edited by
    #1

    Hello,

    I created a new QML1 application and a new QML1 application with the wizard and made a release build with VC and mingw.

    Then I copied the needed files from to the release folder to get it running outside Qt Creator (see cases at the bottom)

    If I try to run the applications on the computer which compiled the applications Case 1 and 2 (QML1) works. Case 3 and 4 (QML2) shows only a tiny window (only the border) without content. If I move the qml folder to the release folder all cases work correctly.

    If I try to run the applications on an other computer the applications Case 1 and 2 (QML1) works. Case 3 and 4 (QML2) shows only a tiny window (only the border) without content. If I move the qml folder to the release folder still the applications Case 1 and 2 (QML1) work correctly. But Case 3 and 4 (QML2) shows only a tiny window (only the border) without content.

    Question 1: How can I get the QML2 application get running on an other computer?

    Question 2: Is the right place for the qml folder with files in release folder for the QML1 cases? If yes, why does it work if the qml folder is 'one level up'?

    @Case 1:
    T:\Transfer\Transfer AVB\UvTouch_Kram\HelloQML1-build-Desktop_Qt_5_0_1_MinGW_32bit-Release>tree /f
    T:.
    ¦ Makefile
    ¦ Makefile.Debug
    ¦ Makefile.Release
    ¦
    +---debug
    +---qml
    ¦ +---HelloQML1
    ¦ main.qml
    ¦
    +---release
    ¦ D3DCompiler_43.dll
    ¦ HelloQML1.exe
    ¦ icudt49.dll
    ¦ icuin49.dll
    ¦ icuuc49.dll
    ¦ libEGL.dll
    ¦ libgcc_s_sjlj-1.dll
    ¦ libGLESv2.dll
    ¦ libstdc++-6.dll
    ¦ libwinpthread-1.dll
    ¦ Qt5Core.dll
    ¦ Qt5Declarative.dll
    ¦ Qt5Gui.dll
    ¦ Qt5Network.dll
    ¦ Qt5Script.dll
    ¦ Qt5Sql.dll
    ¦ Qt5Widgets.dll
    ¦ Qt5XmlPatterns.dll
    ¦
    +---platforms
    qminimal.dll
    qwindows.dll
    @
    @Case 2:
    T:\HelloQML1-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Default_build_Release>tree /f
    T:.
    ¦ Makefile
    ¦ Makefile.Debug
    ¦ Makefile.Release
    ¦
    +---debug
    +---qml
    ¦ +---HelloQML1
    ¦ main.qml
    ¦
    +---release
    ¦ D3DCompiler_43.dll
    ¦ HelloQML1.exe
    ¦ HelloQML1.exe.embed.manifest
    ¦ icudt49.dll
    ¦ icuin49.dll
    ¦ icuuc49.dll
    ¦ libEGL.dll
    ¦ libGLESv2.dll
    ¦ msvcp100.dll
    ¦ msvcr100.dll
    ¦ Qt5Core.dll
    ¦ Qt5Declarative.dll
    ¦ Qt5Gui.dll
    ¦ Qt5Network.dll
    ¦ Qt5Script.dll
    ¦ Qt5Sql.dll
    ¦ Qt5Widgets.dll
    ¦ Qt5XmlPatterns.dll
    ¦
    +---platforms
    qminimal.dll
    qwindows.dll
    @
    @Case 3:
    T:\HelloQML2-build-Desktop_Qt_5_0_1_MinGW_32bit-Release>tree /f
    T:.
    ¦ Makefile
    ¦ Makefile.Debug
    ¦ Makefile.Release
    ¦
    +---debug
    +---qml
    ¦ +---HelloQML2
    ¦ main.qml
    ¦
    +---release
    ¦ D3DCompiler_43.dll
    ¦ HelloQML2.exe
    ¦ icudt49.dll
    ¦ icuin49.dll
    ¦ icuuc49.dll
    ¦ libEGL.dll
    ¦ libgcc_s_sjlj-1.dll
    ¦ libGLESv2.dll
    ¦ libstdc++-6.dll
    ¦ libwinpthread-1.dll
    ¦ Qt5Core.dll
    ¦ Qt5Gui.dll
    ¦ Qt5Network.dll
    ¦ Qt5Qml.dll
    ¦ Qt5Quick.dll
    ¦ Qt5V8.dll
    ¦
    +---platforms
    qminimal.dll
    qwindows.dll
    @
    @Case 4:
    T:\HelloQML2-build-Desktop_Qt_5_0_1_MSVC2010_32bit-Default_build_Release>tree /f
    T:.
    ¦ Makefile
    ¦ Makefile.Debug
    ¦ Makefile.Release
    ¦
    +---debug
    +---qml
    ¦ +---HelloQML2
    ¦ main.qml
    ¦
    +---release
    ¦ D3DCompiler_43.dll
    ¦ HelloQML2.exe
    ¦ HelloQML2.exe.embed.manifest
    ¦ icudt49.dll
    ¦ icuin49.dll
    ¦ icuuc49.dll
    ¦ libEGL.dll
    ¦ libGLESv2.dll
    ¦ msvcp100.dll
    ¦ msvcr100.dll
    ¦ Qt5Core.dll
    ¦ Qt5Gui.dll
    ¦ Qt5Network.dll
    ¦ Qt5Qml.dll
    ¦ Qt5Quick.dll
    ¦ Qt5V8.dll
    ¦
    +---platforms
    qminimal.dll
    qwindows.dll
    @

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sidsukana
      wrote on 3 Jun 2013, 08:45 last edited by
      #2

      Qt 5.1b1
      Similar question. The problem was solved?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sidsukana
        wrote on 4 Jun 2013, 04:47 last edited by
        #3

        Hmm... problem solved when add folder with .qml file)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stevenhurd
          wrote on 4 Jun 2013, 16:03 last edited by
          #4

          Yes, most likely the problem above was needing the QML in the proper place. There's a whole bunch of things you need to do correctly to successfully deploy to another system. Typically the QML is embedded in a resource file though so that it's not editable when deployed.

          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