Files
RedBear-OS/local/recipes/kde/kf6-kitemmodels/source/tests/qml/columnheaders.qml
T
2026-04-14 10:51:06 +01:00

21 lines
568 B
QML

import QtQuick
import org.kde.kitemmodels as KItemModels
// This test is somewhat lame in that it should only display a single "1".
// ListModel only has one column and no way of adding more. And there is not
// really another model that is simple to create from QML that does have columns
// and column headers.
ListView {
model: KItemModels.KColumnHeadersModel {
sourceModel: ListModel {
ListElement { display: "test1" }
ListElement { display: "test2" }
}
}
delegate: Text {
text: model.display
}
}