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

List:       pykde
Subject:    Re: [PyQt]
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-02-23 10:46:07
Message-ID: b6c826f9ee3f7074edab714d8fd934d0 () localhost
[Download RAW message or body]

On Wed, 23 Feb 2011 01:51:46 +0100, Yasin Uludag
<yasin.uludag@futuregames.se> wrote:
> Hey!
> 
> I'm developing a propertygrid and I'd like to support flags and enums.
> Though I couldn't find the information on how to declare pyqtProperties
as
> enums / flags so I can later use
>
*enumerator<http://mail.google.com/a/futuregames.se/qmetaproperty.html#enumerator>
> * () of the QMetaProperty.. (you know the rest :) )
> 
> In C++ this is done by using Q_ENUMS and Q_FLAGS. These are available in
> the
> QtCore so I think I'm just missing something :)
> 
> A quick sample or even forwarding me to the right path is enough :)
> 
> Best regards!

You can define properties with an existing enum type. However PyQt doesn't
(at the moment) allow you to define new enum types.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://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