Skip to content

PythonQt.QtCore.QMetaProperty

QMetaProperty

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Property meta-data is obtained from an object's meta-object. See QMetaObject::property() and QMetaObject::propertyCount() for details.

Property Meta-Data

A property has a name() and a type(), as well as various attributes that specify its behavior: isReadable(), isWritable(), isDesignable(), isScriptable(), revision(), and isStored().

If the property is an enumeration, isEnumType() returns true; if the property is an enumeration that is also a flag (i.e. its values can be combined using the OR operator), isEnumType() and isFlagType() both return true. The enumerator for these types is available from enumerator().

The property's values are set and retrieved with read(), write(), and reset(); they can also be changed through QObject's set and get functions. See QObject::setProperty() and QObject::property() for details.

Copying and Assignment

QMetaProperty objects can be copied by value. However, each copy will refer to the same underlying property meta-data.

Source: https://doc.qt.io/archives/qt-5.15/qmetaproperty.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
enclosingMetaObject function (self) -> Any X.enclosingMetaObject() -> PythonQt.QtCore.QMetaObject (shared captured text)
enumerator function (self) -> Any X.enumerator() -> PythonQt.QtCore.QMetaEnum
hasNotifySignal function (self) -> bool X.hasNotifySignal() -> bool
hasStdCppSet function (self) -> bool X.hasStdCppSet() -> bool
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
isConstant function (self) -> bool X.isConstant() -> bool
isDesignable function (self, obj: Any) -> bool X.isDesignable(obj) -> bool
isEditable function (self, obj: Any) -> bool X.isEditable(obj) -> bool
isEnumType function (self) -> bool X.isEnumType() -> bool
isFinal function (self) -> bool X.isFinal() -> bool
isFlagType function (self) -> bool X.isFlagType() -> bool
isReadable function (self) -> bool X.isReadable() -> bool
isResettable function (self) -> bool X.isResettable() -> bool
isScriptable function (self, obj: Any) -> bool X.isScriptable(obj) -> bool
isStored function (self, obj: Any) -> bool X.isStored(obj) -> bool
isUser function (self, obj: Any) -> bool X.isUser(obj) -> bool
isValid function (self) -> bool X.isValid() -> bool
isWritable function (self) -> bool X.isWritable() -> bool
name function (self) -> str X.name() -> int
notifySignal function (self) -> Any X.notifySignal() -> PythonQt.QtCore.QMetaMethod
notifySignalIndex function (self) -> int X.notifySignalIndex() -> int
propertyIndex function (self) -> int X.propertyIndex() -> int
read function (self, obj: Any) -> Any X.read(obj) -> object
readOnGadget function (self, gadget: int) -> Any X.readOnGadget(gadget) -> object
reset function (self, obj: Any) -> bool X.reset(obj) -> bool
resetOnGadget function (self, gadget: int) -> bool X.resetOnGadget(gadget) -> bool
revision function (self) -> int X.revision() -> int
type function (self) -> Any Returns this property's type.
typeName function (self) -> str X.typeName() -> int
userType function (self) -> int X.userType() -> int
write function (self, obj: Any, value: Any) -> bool X.write(obj, value) -> bool
writeOnGadget function (self, gadget: int, value: Any) -> bool X.writeOnGadget(gadget, value) -> bool