I tied convert this stylesheet to painter, but I'm failed.
stylesheet
Code:
"background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);"
painter
Code:
What is wrong ?
Printable View
I tied convert this stylesheet to painter, but I'm failed.
stylesheet
Code:
"background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);"
painter
Code:
What is wrong ?
linearGrad(0,0,0,1) will make you a gradient that is 0 pixels wide and 1 pixel high. That's probably not what you want. Either set a different Spread for the gradient or use absolute (as opposed to relative used by style sheets) coordinates.