Skip to content

PythonQt.Qt.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 (shared captured text)
hasNotifySignal function (self) -> bool X.hasNotifySignal() -> bool (shared captured text)
hasStdCppSet function (self) -> bool X.hasStdCppSet() -> bool (shared captured text)
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 (shared captured text)
isDesignable function (self, obj: Any) -> bool X.isDesignable(obj) -> bool (shared captured text)
isEditable function (self, obj: Any) -> bool X.isEditable(obj) -> bool (shared captured text)
isEnumType function (self) -> bool X.isEnumType() -> bool (shared captured text)
isFinal function (self) -> bool X.isFinal() -> bool (shared captured text)
isFlagType function (self) -> bool X.isFlagType() -> bool (shared captured text)
isReadable function (self) -> bool X.isReadable() -> bool (shared captured text)
isResettable function (self) -> bool X.isResettable() -> bool (shared captured text)
isScriptable function (self, obj: Any) -> bool X.isScriptable(obj) -> bool (shared captured text)
isStored function (self, obj: Any) -> bool X.isStored(obj) -> bool (shared captured text)
isUser function (self, obj: Any) -> bool X.isUser(obj) -> bool (shared captured text)
isValid function (self) -> bool X.isValid() -> bool (shared captured text)
isWritable function (self) -> bool X.isWritable() -> bool (shared captured text)
name function (self) -> str X.name() -> int (shared captured text)
notifySignal function (self) -> Any X.notifySignal() -> PythonQt.QtCore.QMetaMethod (shared captured text)
notifySignalIndex function (self) -> int X.notifySignalIndex() -> int (shared captured text)
propertyIndex function (self) -> int X.propertyIndex() -> int (shared captured text)
read function (self, obj: Any) -> Any X.read(obj) -> object (shared captured text)
readOnGadget function (self, gadget: int) -> Any X.readOnGadget(gadget) -> object (shared captured text)
reset function (self, obj: Any) -> bool X.reset(obj) -> bool (shared captured text)
resetOnGadget function (self, gadget: int) -> bool X.resetOnGadget(gadget) -> bool (shared captured text)
revision function (self) -> int X.revision() -> int (shared captured text)
type function (self) -> Any Returns this property's type. (shared captured text)
typeName function (self) -> str X.typeName() -> int (shared captured text)
userType function (self) -> int X.userType() -> int (shared captured text)
write function (self, obj: Any, value: Any) -> bool X.write(obj, value) -> bool (shared captured text)
writeOnGadget function (self, gadget: int, value: Any) -> bool X.writeOnGadget(gadget, value) -> bool (shared captured text)