[Solved] QML LinearGradient along the x-axis
-
Yes, the code works; but it should be left to right, not top to bottom...
-
It is from Left to right.
-
That's weird.
What version of Qt are you using?
I tried with Qt 5.1.1 and 5.2 beta, both with the same result. -
Qt 5.1.0
-
Ok,
I forgot to reply to your earlier question about calling the correct qml file.
I was using an empty project with the code directly in the application window, so this could not be an issue.Now I now for sure its not a code issue I'll try some other venues in an attempt to resolve this (different project type / different Qt version / Qt without openGL / ...)
I'll also try on another PC since this one has some company group policies applied to it.
I'll post my findings as soon as I have resolved this issue.
Anyways, thank you for your help.
-
Solved by uninstalling all versions of Qt and reïnstalled 5.2 beta1.
I guess something got broken while having different versions installed.