QML渐变色

 Rectangle {
        id: tab_btn
        width: 80
        height: parent.height
        color: "black"
        gradient: Gradient {
            GradientStop { position: 0.0; color: "#292929" }
            GradientStop { position: 1.0; color: "#828282" }
        }
     Row{
    ....//color全为“gray”
  
    } }

 

posted @ 2019-07-31 17:12  朱小勇  阅读(1721)  评论(0编辑  收藏  举报