[PyQt] [UIC] uic.properties _gradient factory returns wrong item

Giuseppe Corbelli corbelligiuseppe at mesdan.it
Fri Nov 24 11:38:07 GMT 2017

Hi all
Wanting to apply a gradient background to some buttons I ended up having 
a custom palette with gradients (not sure if this is a side effect or 
something needed to have the stylesheet work).

However apparently the uic.properties._gradient factory is returning the 
string 'gradient' instead of the actual Q*Gradient instance.

See uic.properties at 277

from PyQt5 import Qt
Qt.QT_VERSION 329986

Giuseppe Corbelli

More information about the PyQt mailing list