POD as PROP gives multiple definition error
Unsolved
General and Desktop
-
In documentation it says POD can be used as a PROP.
"use the POD keyword to define objects like this, which can then be used by in PROP/SIGNAL/SLOT definitions in your class definitions."
https://doc.qt.io/qt-6/qtremoteobjects-repc.htmlBut when i try this i get a multiple definition error:
moc_rep_CustomInterface_source.cpp:105: error: multiple definition of `VariantList::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)'; ... moc_rep_CustomInterface_replica.cpp:105: first defined here
probably its because i use
qt_add_repc_replicas()
qt_add_repc_sources()
in the same project.#include <QList> #include <QVariantMap> POD VariantList(QList<QVariantMap> variantMaps) class CustomInterface { PROP(VariantList variantList SOURCEONLYSETTER) }