Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // List_view.qml
- import QtQuick 2.13
- ListView {
- property alias text_: internal.text_
- ListModel {
- id: test_model
- ListElement {name: "first"}
- ListElement {name: "second"}
- }
- anchors.fill: parent
- model: test_model
- delegate: Rectangle {
- height: 28
- width: parent.width
- Internal {
- id: internal
- }
- }
- }
- // Internal.qml
- import QtQuick 2.13
- import QtQuick.Controls 2.13
- Label {
- property string text_: "default"
- text: text_
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement