[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QML constant with PyQt
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2013-10-16 11:36:56
Message-ID: 198be6ac8601ed4a2a6129a4cd48d10e () localhost
[Download RAW message or body]
On Wed, 16 Oct 2013 13:26:40 +0200, Alexander Rössler
<mail.aroessler@gmail.com> wrote:
> 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.
Have you tried using QtCore.Q_ENUMS()?
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