[PyQt] Can I use custom enumerations for custom pyqtProperty's?
phil at riverbankcomputing.com
Fri Feb 19 20:55:51 GMT 2016
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?
> [PyQt] How do you declare enum / flag based pyqtProperties in PyQT
> just like Q_ENUMS / Q_FLAGS macroes?
> I was hoping that perhaps the answers had changed in the past several
> years and that this is now possible. Thanks for any guidance.
> P.S. If interested, my widgets (and the rest of my application) is
> available at:
PyQt implements Q_ENUM so you can experiment with that.
More information about the PyQt