Important: Please read the Qt Code of Conduct -

Access items in Grid from C++ code

  • Hello everyone,
    Is there a way in Qt to access items (added with repeater) in Grid from C++ code?
    If there is no way to do so or is considered to be a bad practice, would you please suggest an alternative?


  • Qt Champions 2016

    findChild() do not works with Repeater. You need to call itemAt() to get specific children from Repeater.

    For example:

                QQuickItem* child;

  • Thanks for your reply.