Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136719

Create linked qml module

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.8
    • Build System: CMake
    • None
    • All

    Description

      I create qml module DataModel 
      qt_add_library(DataModel SHARED)
      qt_add_qml_module(DataModel
          URI DataModel
          VERSION 1.0
          PLUGIN_TARGET DataModel
          TYPEINFO plugins.qmltypes
          SOURCES data_model.h data_model.cpp
      )
      DataModel class is QML_SINGLETON
      Can i create a module like this?
      In qt guide https://doc.qt.io/qt-6/qtqml-writing-a-module.html
      they recommends create qt_add_library with STATIC flag

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            andrey_s asd asd
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes