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. Save list of QVariantList(which has came from QT) into global variable in QML
Forum Updated to NodeBB v4.3 + New Features

Save list of QVariantList(which has came from QT) into global variable in QML

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 659 Views 1 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.
  • A Offline
    A Offline
    alizadeh91
    wrote on last edited by
    #1

    Hi,
    I am sending list of QVariantList to qml as a single variable and i get this list correctly in qml. But when i want to save this list in a global variable in qml i have a problem . It won't save as list and it seems that it converts to a single variable. How can i save it as a array or list in qml which is 2D????
    I have defined my property in qml as follows:
    property variant pAlarmsList : [];

    I am using Qt 5.1 and QTQuick 2.1

    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