Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to pass QVector<Qpolygon> from C++ to Qml



  • When I try to pass QVector<QPolygon> as a signal or Q_PROPERTY to QML, I am not able to read and it shows QVariant(QVector<QPolygon>) in QML.
    I tried with QVariantList instead of QVector it works.
    But I need QVector<QPolygon> as per our design to pass to QML and draw using each polygon.
    Thanks in advance.


Log in to reply