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

List:       pykde
Subject:    [PyQt] How do you declare enum / flag based pyqtProperties in PyQT
From:       Yasin Uludag <yasin.uludag () futuregames ! se>
Date:       2011-02-23 0:51:46
Message-ID: AANLkTi=8hcBiPN87QidYCZMiEygUw7CUomx+fWdixyw= () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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!

[Attachment #5 (text/html)]

<div>Hey!<br><br>I&#39;m developing a propertygrid and I&#39;d like to support flags \
and enums.<br>Though I couldn&#39;t find the information on how to declare \
pyqtProperties as enums / flags so I can later use <span style="WIDOWS: 2; \
TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium \
Arial; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); \
WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" \
class="Apple-style-span"><span style="LINE-HEIGHT: 13px; FONT-FAMILY: Verdana; COLOR: \
rgb(54,53,52); FONT-SIZE: 11px" class="Apple-style-span"><b><a style="COLOR: \
rgb(76,0,51); TEXT-DECORATION: none" \
href="http://mail.google.com/a/futuregames.se/qmetaproperty.html#enumerator">enumerator</a></b><span \
class="Apple-converted-space"> </span>() of the QMetaProperty.. (you know the rest :) \
)<br> <br>In C++ this is done by using Q_ENUMS and Q_FLAGS. These are available in \
the QtCore so I think I&#39;m just missing something :)<br><br>A quick sample or even \
forwarding me to the right path is enough :)<br><br>Best regards!</span></span></div>



_______________________________________________
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