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”
  
    } }

QML渐变色

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2022-01-13
  • 2021-12-04
  • 2021-12-05
  • 2021-12-05
  • 2021-12-23
猜你喜欢
  • 2021-06-25
  • 2021-07-27
  • 2022-02-19
  • 2021-12-05
  • 2021-11-08
  • 2022-02-27
相关资源
相似解决方案