[PyQt] QML constant with PyQt

Alexander Rössler mail.aroessler at gmail.com
Wed Oct 16 12:26:40 BST 2013


Hello,

How can I create a constant accessible in QML 
without an object using PyQt? In C++ I would use 
Q_ENUMS(). Creating a read-only property does 
not work since it needs an object.

Regards
Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20131016/4a9047c8/attachment.html>


More information about the PyQt mailing list