Solved LinearGradient Center problem
-
Hello,
I have rectangle 862x65.
And i have 3 color red-yellow-greenI using this colors witch lineargradient in rectangle and i want show in center of rectangle.
But yellow not in center.How can i show yellow color in center?
Codes
https://pastebin.com/ZdMvRhinWhat i want?
http://prntscr.com/opj10jExample
http://prntscr.com/opj30p -
Fixed problems.
Fix
start: Qt.point(0,parent.height/2)
end: Qt.point(parent.width,parent.height/2)