Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt6 CMake for QML
Forum Updated to NodeBB v4.3 + New Features

Qt6 CMake for QML

Scheduled Pinned Locked Moved Unsolved Qt 6
qt6.2.4qt quickcmake
1 Posts 1 Posters 336 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.
  • L Offline
    L Offline
    LucaOlimpio
    wrote on last edited by
    #1

    Hi,

    I'm working on Qt with CMake.
    Is it possible to import runtime QML files using CMake?

    I wanto to creare a folder, near the .exe where I can put many QML files.

    MyProject
    - CMakeLists.txt
    - main.cpp
    - main.qml
    test_comp
    myComponent
    - CMakeLists.txt
    - FirstComponent.qml
    - SecondComponent.qml

    First CMakeLists.txt
    [...]
    add_subdirectory(test_comp/myComponent)
    [...]

    MyComponent CMakeLists.txt
    qt_add_qml_module(myComponent
    URI test_comp.myComponent
    VERSION 1.0
    PLUGIN_TARGET myComponent
    QML_FILES
    TabButton.qml
    )

    With this solution Qt create .dll and .lib files. but If I want to modify my component.qml
    I need to rebuild to generate new dll. and .lib files.

    Is there a way with CMake to make that qml component workable runtime for my app?

    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