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. Organising order of children of QML Component from C++ . How?
Forum Updated to NodeBB v4.3 + New Features

Organising order of children of QML Component from C++ . How?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 429 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello all!
    Just solved this issue and need now to be able to put QML Component created from C++ in special place. For example I have Column and I need to place new Child between Child1 and Child2 and after this delete Child 3:

    * RootObject(QtQuickColumn)
       * Child 1
       * Child 2
       * Child 3
    

    The question is - how to be able to handle order of children of QML Component from C++?

    1 Reply Last reply
    0
    • GrecKoG Online
      GrecKoG Online
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      I'll just leave those links for you :
      https://doc.qt.io/qt-5/qtquick-bestpractices.html#interacting-with-qml-from-c
      http://doc.qt.io/qt-5/qtqml-cppintegration-overview.html#interacting-with-qml-objects-from-c
      https://youtu.be/vzs5VPTf4QQ?t=23m20s

      I think you are on a wrong path trying (and struggling) to instantiate and access QML components from c++.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved