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. using QVector3D in QML module in Qt6.3
Qt 6.11 is out! See what's new in the release blog

using QVector3D in QML module in Qt6.3

Scheduled Pinned Locked Moved Unsolved Qt 6
1 Posts 1 Posters 381 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.
  • V Offline
    V Offline
    vantoorn
    wrote on last edited by
    #1

    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> include

    So there are a couple of options:

    1. 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
    2. Or ...

    Anmy suggestion appreciated

    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