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. Running QML application package
QtWS25 Last Chance

Running QML application package

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi all,
    I have created a QML application for running Qt 5.2 controls. The main programme uses QQMLEngine for loading the QML file. It is running good when I run it on QtCreator, but fails to run when I run it in separate folder. Please help to solve this. Do I need to add more dependencies.

    Ansif

    1 Reply Last reply
    0
    • O Offline
      O Offline
      onek24
      wrote on last edited by
      #2

      Hey,

      • Which error occures?
      • Have you tried to start it from console and check for output?
      • Have you checked if your QML-file exists and is in the right folder?
      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hi onek24,

        I am using QQmlApplicationEngine for loading the main.qml file. It will work if i run it in Qt creator. But when i copy the exe to the Qt bin folder and run it from there, then it fails.
        Is QQmlApplicationEngine working well ?
        Ansif

        1 Reply Last reply
        0
        • O Offline
          O Offline
          onek24
          wrote on last edited by
          #4

          Well, QQmlApplicationEngine was introduced in Qt 5.1 and is still a finely useable component. If you are missing some dll's it would output that, so the dependencies shouldn't be a problem.
          And what do you mean by "it fails", does it start but doesn't display something or doesn't it even start?

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            sorry for the late reply. It was my mistake, hence QQMLApplicationEngine is working fine. There was my own 3rd party dll missing in my system.
            I refer it properly in the QML application and it works fine.

            Anyway thank you for your nice help. Please keep in touch.

            Ansif

            1 Reply Last reply
            0
            • O Offline
              O Offline
              onek24
              wrote on last edited by
              #6

              You're welcome, i'm glad that you could solve your problem.

              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