Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo SDK Support › singleton QML file in Felgo 4

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24895

    Miran Višner

    Hi,

    I am trying to create costum singleton QML file, for some configuration of my app in Felgo 4.0 and no mattter what I try to do I get value of my costum property: “undefined” but I set that property value to 15 in my singleton QML file.

     

    in my singleton QML file I typed “pragma Singleton” before anything else and I typed:

    set_source_files_properties(MySingleton.qml PROPERTIES
    QT_QML_SINGLETON_TYPE ON
    )

    into my CMakeLists.txt after command that lists all qml/js files. How to make it work?

    #25179

    drsnowlabs

    Hi all.

     

    Just following up on this, since I got into the same situation. I’m using qt 6.6.1 and this is still an issue. The workaround of adding the “old-style” qmldir file (and adding it under QML_FILES in qt_add_qml_module()) does the trick.

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded