[SOLVED] QtQuick Controls, TabView title color and Button text color
-
read "this thread":http://qt-project.org/forums/viewthread/31257/
-
Here is sum for this thread:
Button component can be edited using style property.
Example:
@import QtQuick.Controls.Styles 1.0
Button {
x: 100
y: 100
width: 50
height: 20
style: ButtonStyle {
background: Rectangle {
implicitWidth: 100
implicitHeight: 25
border.width: control.activeFocus ? 2 : 1
border.color: "#888"
radius: 10
gradient: Gradient {
GradientStop { position: 0 ; color: control.pressed ? "#ccc" : "#eee" }
GradientStop { position: 1 ; color: control.pressed ? "#aaa" : "#ccc" }
}
}
label: Text {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: "Ok"
color: "#9e90a3"
}
}
}@