Minzhang He
2018-11-21 01:45:44 UTC
I just started using and like QtQuick.Controls 2.
I want change button Material color in QML.
this is my QML code:
* Button {*
* id: btnOK*
* x: 248*
* y: 208*
* text: qsTr("确讀")*
* Material.foreground: Material.primary*
* Material.background: Material.Dark*
* MouseArea{*
* anchors.fill: parent*
* hoverEnabled: true*
* onEntered: {*
* //this is want to change Material code:*
* //btnOK.Material.foreground = ???*
* //btnOK.Material.background = ???*
* }*
* }*
* }*
Can you help me?
I want change button Material color in QML.
this is my QML code:
* Button {*
* id: btnOK*
* x: 248*
* y: 208*
* text: qsTr("确讀")*
* Material.foreground: Material.primary*
* Material.background: Material.Dark*
* MouseArea{*
* anchors.fill: parent*
* hoverEnabled: true*
* onEntered: {*
* //this is want to change Material code:*
* //btnOK.Material.foreground = ???*
* //btnOK.Material.background = ???*
* }*
* }*
* }*
Can you help me?