How to Remove an item from Column Element
Solved
QML and Qt Quick
-
I want to remove some controls which are created in Column QML type and also how to access the children? .Following is the code:
import QtQuick 2.6 import QtQuick.controls 2.2 Item { Column { id:col spacing: 2 Rectangle { color: "red"; width: 50; height: 50 } Rectangle { color: "green"; width: 20; height: 50 } Rectangle { color: "blue"; width: 50; height: 20 } } Button { id:button onClicked: { //How to remove perticular element from above column ? } } }