From e73fe498e86dbb20d74f8d6ca13b541642676b82 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Thu, 19 Feb 2026 18:00:52 +0100 Subject: Rename QML singleton to Bobink and simplify singleton lifecycle Replace QML_ELEMENT with QML_NAMED_ELEMENT(Bobink) so QML references use `Bobink` instead of `BobinkClient`. Remove instance()/create() factory in favor of inline s_instance set in the constructor. Import BobinkPlugin statically in demo, link demo to BobinkQtOpcUaplugin, and make library link dependencies PUBLIC. Add .qtcreator to gitignore. --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5898132..1292194 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,4 @@ +qt_add_library(BobinkQtOpcUa STATIC) # BobinkQtOpcUa — QML module wrapping QtOpcUa for declarative use. qt_add_qml_module( BobinkQtOpcUa @@ -15,4 +16,4 @@ qt_add_qml_module( OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/qml/Bobink") -target_link_libraries(BobinkQtOpcUa PRIVATE Qt6::Core Qt6::Quick Qt6::OpcUa) +target_link_libraries(BobinkQtOpcUa PUBLIC Qt6::Core Qt6::Quick Qt6::OpcUa) -- cgit v1.2.3