PythonQt.QtGui.QItemEditorFactory · declarations 001
Back to PythonQt.QtGui.QItemEditorFactory
createEditor
createEditor(userType: int, parent: Any) -> Any
X.createEditor(userType, parent) -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
[virtual] QWidget *QItemEditorFactory::createEditor(int userType, QWidget *parent) const
Creates an editor widget with the given parent for the specified userType of data, and returns it as a QWidget.
See also registerEditor().
Upstream PySide2 reference signatures (binding differences may apply):
createEditor(self, userType: int, parent: PySide2.QtWidgets.QWidget) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qitemeditorfactory.html#createEditor
defaultFactory
defaultFactory() -> Any
X.defaultFactory() -> PythonQt.QtGui.QItemEditorFactory
Supplemental documentation: Qt 5 reference:
[static] const QItemEditorFactory *QItemEditorFactory::defaultFactory()
Returns the default item editor factory.
See also setDefaultFactory().
Upstream PySide2 reference signatures (binding differences may apply):
defaultFactory() -> PySide2.QtWidgets.QItemEditorFactory
Source: https://doc.qt.io/archives/qt-5.15/qitemeditorfactory.html#defaultFactory
registerEditor
registerEditor(userType: int, creator: Any) -> None
X.registerEditor(userType, creator)
Supplemental documentation: Qt 5 reference:
void QItemEditorFactory::registerEditor(int userType, QItemEditorCreatorBase *creator)
Registers an item editor creator specified by creator for the given userType of data.
Note: The factory takes ownership of the item editor creator and will destroy it if a new creator for the same type is registered later.
See also createEditor().
Upstream PySide2 reference signatures (binding differences may apply):
registerEditor(self, userType: int, creator: PySide2.QtWidgets.QItemEditorCreatorBase) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemeditorfactory.html#registerEditor
setDefaultFactory
setDefaultFactory(factory: Any) -> None
X.setDefaultFactory(factory)
Supplemental documentation: Qt 5 reference:
[static] void QItemEditorFactory::setDefaultFactory(QItemEditorFactory *factory)
Sets the default item editor factory to the given factory. Both new and existing delegates will use the new factory.
See also defaultFactory().
Upstream PySide2 reference signatures (binding differences may apply):
setDefaultFactory(factory: PySide2.QtWidgets.QItemEditorFactory) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemeditorfactory.html#setDefaultFactory
valuePropertyName
valuePropertyName(userType: int) -> Any
X.valuePropertyName(userType) -> PythonQt.QtCore.QByteArray
Supplemental documentation: Qt 5 reference:
[virtual] QByteArray QItemEditorFactory::valuePropertyName(int userType) const
Returns the property name used to access data for the given userType of data.
Upstream PySide2 reference signatures (binding differences may apply):
valuePropertyName(self, userType: int) -> PySide2.QtCore.QByteArray
Source: https://doc.qt.io/archives/qt-5.15/qitemeditorfactory.html#valuePropertyName