簡體   English   中英

QML:如何在TreeView和TableView上禁用邊框?

[英]QML: How to disable borders at TreeView and TableView?

我可以刪除這些元素的背景和交替的顏色,但我找不到如何刪除它周圍的邊框。 可能嗎?

好的,我找到了解決方案:

TreeView {
    style: TableViewStyle {
        frame: Rectangle {
            border{
                color: "#42414a" // color of the border
            }
        }
    }
}

如果您只想刪除邊框:

frameVisible: false

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM