下面的代碼顯示了表中未使用的行。我希望未使用的行消失。應顯示空白。import QtQuick 2.12import QtQuick.Window 2.12import QtQuick.Controls 1.4Window { visible: true width: 640 height: 480 TableView { height: 300; width: 300 TableViewColumn { role: "title" title: "Title" width: 100 } TableViewColumn { role: "author" title: "Author" width: 200 } model: libraryModel } ListModel { id: libraryModel ListElement { title: "A Masterpiece" author: "Gabriel" } ListElement { title: "Brilliance" author: "Jens" } ListElement { title: "Outstanding" author: "Frederik" } }}我有什么選擇?
如何隱藏 QML 中 TableView 中未使用的行?
藍山帝景
2023-09-21 16:55:26