qml按鈕樣式設計,把樣式寫成組件

通過Button的style屬性可以設置按鈕的樣式如下: style: ButtonStyle { //進行對Button的樣式設置 background: Rectangle { //設置圓角 radius: 5; color: "red"
相關文章
相關標籤/搜索