[Solved] QML LinearGradient along the x-axis
-
Hi,
Your posted code works for me. Are you sure you are calling the right QML file ?
-
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.
-
Hello, do u solved this problem?
I have the same trouble, my qt version is 5.4 -
Hello, do u solved this problem?
I have the same trouble, my qt version is 5.4 -
Another question: how to insert, delete .... the Gradient.stops by javascript? I try every codes, but doesn't work T_T
-
Another question: how to insert, delete .... the Gradient.stops by javascript? I try every codes, but doesn't work T_T