Displaying images in item delegates.

This commit is contained in:
2026-03-07 12:07:17 +01:00
parent dc8a4683db
commit ab5f9b1952
5 changed files with 9 additions and 4 deletions

View File

@ -20,6 +20,10 @@ qt_add_qml_module(${TARGET_APP}
ListPage.qml
ListItemDelegate.qml
ExpandableItemDelegate.qml
RESOURCES
"icons/software-application.png"
"icons/moreUp.png"
"icons/moreDown.png"
)
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.

View File

@ -48,12 +48,13 @@ Item {
width: parent.width
spacing: 10
Rectangle {
Image {
id: icon
width: 50
height: 50
color: wccLavenderDark
source: "icons/software-application.png"
}
Column {
width: background.width - icon.width - 20
height: icon.height
@ -140,7 +141,7 @@ Item {
right: flick.right
top: flick.top
}
source: ":/moreUp.png"
source: "icons/moreUp.png"
opacity: flick.atYBeginning ? 0 : 1
}
@ -150,7 +151,7 @@ Item {
bottom: flick.bottom
}
source: ":/moreDown.png"
source: "icons/moreDown.png"
opacity: flick.atYEnd ? 0 : 1
}
}

BIN
icons/moreDown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

BIN
icons/moreUp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB