Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.3
-
None
Description
See the commit here http://qt.gitorious.org/~mathiasm/qt-components/mathiasm-qt-components/commit/1654a28bae25334fae5a48d5a2f6b993a8220e3d
On line 171 in Gallery.qml, the overriding of the SpinBox's background color defined this way works (see attached snapshot1.png):
property color foo: "red"
SpinBox{ styling.backgroundColor: parent.foo; styling.textColor: column3.fg}
But if the "foo" property is removed and the backgroundColor is set to red "inline", then the background color is not applied (see snapshot2.png):
SpinBox{ styling.backgroundColor: "red"; styling.textColor: column3.fg}
Clone the repo here
git://gitorious.org/~mathiasm/qt-components/mathiasm-qt-components.git
and checkout the QTBUG-17276 branch, or download the code from here
http://qt.gitorious.org/qt-components/mathiasm-qt-components/archive-tarball/QTBUG-17276
To run the code do
./configure make make install
and run the examples/Gallery.qml file with qmlviewer.