Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QML object from within C++

Using QML object from within C++

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 751 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.
  • Y Offline
    Y Offline
    yazwas
    wrote on last edited by
    #1

    Good day

    I've a qml type Details.qml

    @import QtQuick 2.0

    QtObject {
    property string name: ""
    property string email: ""
    .............
    }@

    Now I'm using this in the qml code and fill it up with data
    in main.qml

    @Details detail {id: d}
    //fill the details somehow :)
    @
    I want to use this object (with id d) in C++ manipulate its data

    Any example is more than welcome

    Thanks!

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, start here: http://qt-project.org/doc/qt-5.1/qtqml/qtqml-cppintegration-topic.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      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