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. How to hide qml source in Qt Quick 2 Extension Plugin?
Qt 6.11 is out! See what's new in the release blog

How to hide qml source in Qt Quick 2 Extension Plugin?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 662 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.
  • AlienA Offline
    AlienA Offline
    Alien
    wrote on last edited by Alien
    #1

    Hello,

    I read the below link:
    https://forum.qt.io/topic/30955/hide-qml-source-files-for-deployment

    I know how to compile qml source with qrc but my problem is Qt Quick 2 Extension Plugin, it needs "qmldir" which force me to put my qml source code aside the library which is created by Qt Quick 2 Extension Plugin.

    How to make qml sources hidden in this case?

    Best,
    Alien

    1 Reply Last reply
    0
    • AlienA Offline
      AlienA Offline
      Alien
      wrote on last edited by Alien
      #2

      It is so easy that's enough to write the qrc path in front qml module in qmldir

      qmldir

      module TimeExample
      Clock 1.0 Clock.qml
      plugin qmlqtimeexampleplugin
      

      convert it to

      module TimeExample
      Clock 1.0 qrc:/Clock .qml
      plugin qmlqtimeexampleplugin
      

      thanks

      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