[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Custom enumerations for custom pyqtProperty
From:       Hugo Slepicka <hhslepicka () gmail ! com>
Date:       2017-10-24 20:29:22
Message-ID: CAD4LfZBd75BXuuhKZAqzAY8G=FHzRCsYv_dwjsZ_FWs6P+byQQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

Thank you for the great work on Qt & PyQt and sorry for bringing back an
old thread subject (
http://python.6.x6.nabble.com/Can-I-use-custom-enumerations-for-custom-pyqtProperty-s-tp5184370p5185962.html)
 but I could not find the answer on how to properly deal with custom
enumerations and pyqtProperty.

I am trying to build a QLabel with some custom properties to format my text
based on a user selection. I can get my property to show on the Qt Designer
properly but not much after that. At the UI file it adds the value as
"PyDMLabel::STRING" and later I have problems getting this property value
assigned to my object when I try to launch the UI file.

My complete question and code can be found on this link: (
https://stackoverflow.com/questions/46917671/pyqt5-q-enums).

Thank you,
Hugo


[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi,</div><div><br></div><div>Thank you for the great work on Qt \
&amp; PyQt and sorry for bringing back an old thread subject (<a \
href="http://python.6.x6.nabble.com/Can-I-use-custom-enumerations-for-custom-pyqtPrope \
rty-s-tp5184370p5185962.html">http://python.6.x6.nabble.com/Can-I-use-custom-enumerations-for-custom-pyqtProperty-s-tp5184370p5185962.html</a>) \
but I could not find the answer on how to properly deal with custom enumerations and \
pyqtProperty.</div><div><br></div><div>I am trying to build a QLabel with some custom \
properties to format my text based on a user selection. I can get my property to show \
on the Qt Designer properly but not much after that. At the UI file it adds the value \
as &quot;PyDMLabel::STRING&quot; and later I have problems getting this property \
value assigned to my object when I try to launch the UI \
file.</div><div><br></div><div>My complete question and code can be found on this \
link: (<a href="https://stackoverflow.com/questions/46917671/pyqt5-q-enums">https://st \
ackoverflow.com/questions/46917671/pyqt5-q-enums</a>).</div><div><br></div><div>Thank \
you,</div><div>Hugo</div></div>


[Attachment #6 (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