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?
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest