Details
Description
class PrimitiveType(QObject): #for Q_ENUMS: derive from QObject POINTS = gl.GL_POINTS LINES = gl.GL_LINES LINE_STRIP = gl.GL_LINE_STRIP LINE_LOOP = gl.GL_LINE_LOOP TRIANGLES = gl.GL_TRIANGLES TRIANGLE_STRIP = gl.GL_TRIANGLE_STRIP TRIANGLE_FAN = gl.GL_TRIANGLE_FAN class MyClass(QObject): PrimitiveType = PrimitiveType Q_ENUM(PrimitiveType) ... add property "primitiveType" of type int
and use the syntax "primitiveType: MyClass.POINTS" from qml
Attachments
Issue Links
- relates to
-
PYSIDE-487 Meta task for missing bindings
- Open
For Gerrit Dashboard: PYSIDE-957 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
286278,11 | WIP: Implement Q_ENUM | 5.14 | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
297191,4 | Add a tool to dump meta objects of QObject-derived classes | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
298391,6 | shiboken: Rework sbkenum by fixing refcounts | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
300619,1 | shiboken: Rework sbkenum by fixing refcounts | tqtc/5.15 | pyside/tqtc-pyside-setup | Status: ABANDONED | 0 | 0 |
301294,34 | Implement the QEnum/QFlag decorator, V2 | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |