Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to pass QVector<Qpolygon> from C++ to Qml

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 246 Views 2 Watching
  • 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
    Vasanth
    wrote on last edited by
    #1

    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.

    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