Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.6
- import QtQuick.Window 2.2
- Window {
- id: window
- width: 640
- height: 480
- visible: true
- ListView {
- focus: true
- currentIndex: 0
- anchors.fill: parent
- model: VisualDataModel {
- model: 10
- delegate: Text {
- padding: 10
- text: "Item" + index
- width: parent.width
- color: ListView.isCurrentItem ? "red" : "black"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement