using QVector3D in QML module in Qt6.3
Unsolved
Qt 6
-
I am writing a couple of C++ objects to be used in a QML module library. In general that works fine. I am using CMAKE to compile and to build with the MSVC software of Visual studio
One of the c++ classes is using QVector3D in conjunction with Qt.vector3d in QML for positioning of 3D moving objects in QML. Apparently it is not allowed to include <QVector3D> ("message file not found"). in the c++ software to build the QML module library. The package Core and Gui are found via "find_package"command in the CMakeList.txt file. Proof of that is that when the c++ class is part of the "main program", the c++ class is compiled with the <QVector3D> includeSo there are a couple of options:
- It is not allowed to use software of Gui library in a QML module library
2)QVector3D is obsolete in the context of QML and C++ integration for Qt6.3 - Or ...
Anmy suggestion appreciated
- It is not allowed to use software of Gui library in a QML module library