3
我可以刪除這些元素和交替顏色的背景,但我找不到如何去除它的邊框。可能嗎?QML:如何在TreeView和TableView禁用邊框?
我可以刪除這些元素和交替顏色的背景,但我找不到如何去除它的邊框。可能嗎?QML:如何在TreeView和TableView禁用邊框?
好吧,我找到解決辦法:
TreeView {
style: TableViewStyle {
frame: Rectangle {
border{
color: "#42414a" // color of the border
}
}
}
}
如果你只是想刪除邊框:
frameVisible: false