Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to give a QML file to a Qt app executable?
Qt 6.11 is out! See what's new in the release blog

Is it possible to give a QML file to a Qt app executable?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 708 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.
  • M Offline
    M Offline
    mipr
    wrote on last edited by
    #1

    Hello !

    Is it possible to give a QML file to an executable ? For example, I have my Qt app with the backend and I want to modify the UI without compiling the app again. Thanks to this, a team member can use Qt Design studio to create and modify the UI and an other can use Qt Creator to implement the backend and simple UI.

    "Was Qt Design studio created to divide front and backend?" Yes but the pre-visualisation is not working well, it differs to the final version (build app) that's why I want to give the qml file to the executable.

    Thanks !

    J.HilkJ 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Yes, you can load QML files from disk. Common convention is to compile QML into the app using QRC (resources) but you don't have to do it if you don't want to. You will need to change your app code to load QMLs from disk, though.

      (Z(:^

      1 Reply Last reply
      0
      • M mipr

        Hello !

        Is it possible to give a QML file to an executable ? For example, I have my Qt app with the backend and I want to modify the UI without compiling the app again. Thanks to this, a team member can use Qt Design studio to create and modify the UI and an other can use Qt Creator to implement the backend and simple UI.

        "Was Qt Design studio created to divide front and backend?" Yes but the pre-visualisation is not working well, it differs to the final version (build app) that's why I want to give the qml file to the executable.

        Thanks !

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @mipr

        https://github.com/DeiVadder/RuntimeQmlReload


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mipr
          wrote on last edited by
          #4

          Your answers help me a lot, I will try this based on your example, thanks !

          1 Reply Last reply
          1

          • Login

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