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. Deploy Quick Controls without QML file
Forum Update on Monday, May 27th 2025

Deploy Quick Controls without QML file

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 4 Posters 980 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.
  • D Offline
    D Offline
    Denis1980
    wrote on last edited by
    #1

    Documentation say - "Since Qt 5.2, the Qt Quick Controls JavaScript and QML files are embedded into the plugin using Qt resources (.qrc) for the QtQuick.Controls and QtQuick.Controls.Styles imports. It is only necessary to deploy the qtquickcontrolsplugin C++ library and its qmldir file found in the plugin directory qml/QtQuick/Controls". But I have tried to place only qtquickcontrolsplugin.dll and qmldir in subfolder of folder with my application and it doesn’t work. There was an error - "qrc:/QtQuick/Controls/Label.qml: No such file or directory". If I add all *.qml files from "qml/QtQuick/Controls" all work well.
    Is documentation wrong in that place?
    How I can deploy my application without QML files form "qml/QtQuick/Controls"?
    If it does't work in that way can I place qml files from "qml/QtQuick/Controls" to resources of my application?
    Is there no any opportunity to deploy application without qml files from Qt?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      My Quick check. Since you are using the custom folder did you try to add the new path using addImportPath(...) ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      D 1 Reply Last reply
      0
      • dheerendraD dheerendra

        My Quick check. Since you are using the custom folder did you try to add the new path using addImportPath(...) ?

        D Offline
        D Offline
        Denis1980
        wrote on last edited by Denis1980
        #3

        @dheerendra yes, I have tried addImportPath(...) but *.qml files from "qml/QtQuick/Controls" steel needs.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          Qtrout
          wrote on last edited by Qtrout
          #4

          Hello,

          I have the same problem for deploying my application and "qml/QtQuick/controls.2." elements.

          • If I only copy dll and qmldir files, it's not working.

          • If I also copy qml files and I lanuch my application, some of them will be recompiled as qmlc (Menu MenuItem and ScollIndicator) and it works.

          • But If I'm copying direclty qmlrc, it will not worked either.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            themts
            wrote on last edited by
            #5

            I have exactly the same problem here.
            Any news how to solve it?

            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