[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] [UIC] uic.properties _gradient factory returns wrong item
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2017-11-24 15:11:38
Message-ID: A438AF4E-17E8-47BB-8A72-095656464AED () riverbankcomputing ! com
[Download RAW message or body]
On 24 Nov 2017, at 11:38 am, Giuseppe Corbelli <corbelligiuseppe@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@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
["pyuic.patch" (pyuic.patch)]
diff -r 02e55c83f900 pyuic/uic/properties.py
--- a/pyuic/uic/properties.py Thu Nov 23 14:34:26 2017 +0000
+++ b/pyuic/uic/properties.py Fri Nov 24 15:08:46 2017 +0000
@@ -274,7 +274,7 @@
gradient.setColorAt(position, color)
- return name
+ return gradient
def _palette(self, prop):
palette = self.factory.createQObject("QPalette", "palette", (),
[Attachment #4 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic