adding images to tumbler,QML
-
Hi, i wanted to add images to a tumbler in QML and i have the following lines
Tumbler { id: tumbler x: 227 y: 149 delegate: Image { width: parent.width height: parent.height source: "qrc:/1213.jpg" } }but i get nothing out, what am i doing wrong? there are no errors and the image can be displayed seperately in the window
-
@wiadro you need to specify model.
Tumbler { id: tumbler x: 227 y: 149 model: 10 // or ListModel delegate: Image { width: parent.width height: parent.height source: "qrc:/1213.jpg" } }If you want, you can browse PathView https://doc.qt.io/qt-6/qml-qtquick-pathview.html#details
-
Hi, i wanted to add images to a tumbler in QML and i have the following lines
Tumbler { id: tumbler x: 227 y: 149 delegate: Image { width: parent.width height: parent.height source: "qrc:/1213.jpg" } }but i get nothing out, what am i doing wrong? there are no errors and the image can be displayed seperately in the window
-
@wiadro you need to specify model.
Tumbler { id: tumbler x: 227 y: 149 model: 10 // or ListModel delegate: Image { width: parent.width height: parent.height source: "qrc:/1213.jpg" } }If you want, you can browse PathView https://doc.qt.io/qt-6/qml-qtquick-pathview.html#details
-
W wiadro has marked this topic as solved on