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