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

List:       pykde
Subject:    Re: [PyQt] =?utf-8?q?Can_I_use_custom_enumerations_for_custom_pyqtPro?=
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2016-02-19 20:55:51
Message-ID: 917c1f4ddfe6ef0867e1e450a44f51d9 () riverbankcomputing ! com
[Download RAW message or body]

On 19/02/2016 5:41 pm, Kyle Altendorf wrote:
> I am making a set of widgets which are usable in Qt Designer.  It
> works great and was fairly easy.  I am quite pleased.  :]  I have now
> added a couple of QString properties as well and also want
> enumeration/combobox properties such as shows for the focusPolicy
> QWidget property.  Is this possible?  If so how?
> 
> I searched around and found a couple old queries on the topic.
> 
> [PyQt] Is it possible to use custom enums for custom widgets?
> https://riverbankcomputing.com/pipermail/pyqt/2009-January/021655.html
> 
> [PyQt] How do you declare enum / flag based pyqtProperties in PyQT
> just like Q_ENUMS / Q_FLAGS macroes?
> https://riverbankcomputing.com/pipermail/pyqt/2011-February/029309.html
> 
> I was hoping that perhaps the answers had changed in the past several
> years and that this is now possible.  Thanks for any guidance.
> 
> Cheers,
> -kyle
> 
> P.S. If interested, my widgets (and the rest of my application) is 
> available at:
> 
> https://github.com/altendky/st/tree/cbde14742efb1634daa608e6793a4c71b1e7100c/epyq/widgets

PyQt implements Q_ENUM so you can experiment with that.

Phil
_______________________________________________
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