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. Hiding .qml files for deployment

Hiding .qml files for deployment

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 202 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.
  • A Offline
    A Offline
    akilic
    wrote on last edited by
    #1

    I have a project that I want to deploy. I've ran the windeplyqt.exe and my .exe works. However, windeplyqt also added .qml files that are part of QT in the build directory(like in the screenshot). My .exe doesnt't work if I remove these .qml files but I don't want them to be exposed out in the executable's directory. So, is there a way to embed these into the .exe or another way to hide them?

    Ekran görüntüsü 2022-05-25 091242.png

    1 Reply Last reply
    0
    • ndiasN Offline
      ndiasN Offline
      ndias
      wrote on last edited by
      #2

      Hi @akilic,

      You need to add your .qml files to the Resource Collection Files (.qrc) so this files are built into the binary.
      You can find more details in this example: https://doc.qt.io/archives/qt-5.9/qtquickcontrols2-chattutorial-example.html

      Regards

      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