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

Phil Thompson phil at riverbankcomputing.com
Fri Nov 24 15:11:38 GMT 2017


On 24 Nov 2017, at 11:38 am, Giuseppe Corbelli <corbelligiuseppe at mesdan.it> wrote:
> 
> 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.PYQT_VERSION_STR '5.9'
> Qt.PYQT_VERSION 329984
> Qt.QT_VERSION 329986
> Qt.QT_VERSION_STR '5.9.2'

It should be fixed in tonight's snapshot. Patch attached.

Thanks,
Phil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyuic.patch
Type: application/octet-stream
Size: 393 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171124/f424d04f/attachment.obj>


More information about the PyQt mailing list