PythonQt.QtUiTools.QUiLoader · declarations 001
Back to PythonQt.QtUiTools.QUiLoader
addPluginPath
addPluginPath(path: str) -> None
X.addPluginPath(path)
Supplemental documentation: Qt 5 reference:
void QUiLoader::addPluginPath(const QString \&path)
Adds the given path to the list of paths in which the loader will search when locating plugins.
See also pluginPaths() and clearPluginPaths().
Upstream PySide2 reference signatures (binding differences may apply):
addPluginPath(self, path: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#addPluginPath
availableLayouts
availableLayouts() -> tuple
X.availableLayouts() -> tuple
Supplemental documentation: Qt 5 reference:
QStringList QUiLoader::availableLayouts() const
Returns a list naming all available layouts that can be built using the createLayout() function
This function was introduced in Qt 4.5.
See also createLayout().
Upstream PySide2 reference signatures (binding differences may apply):
availableLayouts(self) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#availableLayouts
availableWidgets
availableWidgets() -> tuple
X.availableWidgets() -> tuple
Supplemental documentation: Qt 5 reference:
QStringList QUiLoader::availableWidgets() const
Returns a list naming all available widgets that can be built using the createWidget() function, i.e all the widgets specified within the given plugin paths.
See also pluginPaths() and createWidget().
Upstream PySide2 reference signatures (binding differences may apply):
availableWidgets(self) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#availableWidgets
clearPluginPaths
clearPluginPaths() -> None
X.clearPluginPaths()
Supplemental documentation: Qt 5 reference:
void QUiLoader::clearPluginPaths()
Clears the list of paths in which the loader will search when locating plugins.
See also addPluginPath() and pluginPaths().
Upstream PySide2 reference signatures (binding differences may apply):
clearPluginPaths(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#clearPluginPaths
createAction
createAction(parent: Any, name: str) -> Any
X.createAction(parent, name) -> PythonQt.QtGui.QAction
Supplemental documentation: Qt 5 reference:
[virtual] QAction *QUiLoader::createAction(QObject *parent \= nullptr, const QString \&name \= QString())
Creates a new action with the given parent and name.
The function is also used internally by the QUiLoader class whenever it creates a widget. Hence, you can subclass QUiLoader and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call QUiLoader's version first.
See also createActionGroup(), createWidget(), and load().
Upstream PySide2 reference signatures (binding differences may apply):
createAction(self, parent: typing.Optional[PySide2.QtCore.QObject]=..., name: str=...) -> PySide2.QtWidgets.QAction
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#createAction
createActionGroup
createActionGroup(parent: Any, name: str) -> Any
X.createActionGroup(parent, name) -> PythonQt.QtGui.QActionGroup
Supplemental documentation: Qt 5 reference:
[virtual] QActionGroup *QUiLoader::createActionGroup(QObject *parent \= nullptr, const QString \&name \= QString())
Creates a new action group with the given parent and name.
The function is also used internally by the QUiLoader class whenever it creates a widget. Hence, you can subclass QUiLoader and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call QUiLoader's version first.
See also createAction(), createWidget(), and load().
Upstream PySide2 reference signatures (binding differences may apply):
createActionGroup(self, parent: typing.Optional[PySide2.QtCore.QObject]=..., name: str=...) -> PySide2.QtWidgets.QActionGroup
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#createActionGroup
createLayout
createLayout(className: str, parent: Any, name: str) -> Any
X.createLayout(className, parent, name) -> PythonQt.QtGui.QLayout
Supplemental documentation: Qt 5 reference:
[virtual] QLayout *QUiLoader::createLayout(const QString \&className, QObject *parent \= nullptr, const QString \&name \= QString())
Creates a new layout with the given parent and name using the class specified by className.
The function is also used internally by the QUiLoader class whenever it creates a widget. Hence, you can subclass QUiLoader and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call QUiLoader's version first.
See also createWidget() and load().
Upstream PySide2 reference signatures (binding differences may apply):
createLayout(self, className: str, parent: typing.Optional[PySide2.QtCore.QObject]=..., name: str=...) -> PySide2.QtWidgets.QLayout
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#createLayout
createWidget
createWidget(className: str, parent: Any, name: str) -> Any
X.createWidget(className, parent, name) -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
[virtual] QWidget *QUiLoader::createWidget(const QString \&className, QWidget *parent \= nullptr, const QString \&name \= QString())
Creates a new widget with the given parent and name using the class specified by className. You can use this function to create any of the widgets returned by the availableWidgets() function.
The function is also used internally by the QUiLoader class whenever it creates a widget. Hence, you can subclass QUiLoader and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call QUiLoader's version first.
See also availableWidgets() and load().
Upstream PySide2 reference signatures (binding differences may apply):
createWidget(self, className: str, parent: typing.Optional[PySide2.QtWidgets.QWidget]=..., name: str=...) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#createWidget
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtUiTools.QUiLoader.destroyed; argument details are not documented.
errorString
errorString() -> str
X.errorString() -> str
Supplemental documentation: Qt 5 reference:
QString QUiLoader::errorString() const
Returns a human-readable description of the last error occurred in load().
This function was introduced in Qt 5.0.
See also load().
Upstream PySide2 reference signatures (binding differences may apply):
errorString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#errorString
isLanguageChangeEnabled
isLanguageChangeEnabled() -> bool
X.isLanguageChangeEnabled() -> bool
Supplemental documentation: Qt 5 reference:
bool QUiLoader::isLanguageChangeEnabled() const
Returns true if dynamic retranslation on language change is enabled; returns false otherwise.
This function was introduced in Qt 4.5.
See also setLanguageChangeEnabled().
Upstream PySide2 reference signatures (binding differences may apply):
isLanguageChangeEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#isLanguageChangeEnabled
isTranslationEnabled
isTranslationEnabled() -> bool
X.isTranslationEnabled() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isTranslationEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#isTranslationEnabled
load
load(device: Any, parentWidget: Any) -> Any
X.load(device, parentWidget) -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QUiLoader::load(QIODevice *device, QWidget *parentWidget \= nullptr)
Loads a form from the given device and creates a new widget with the given parentWidget to hold its contents.
See also createWidget() and errorString().
Upstream PySide2 reference signatures (binding differences may apply):
load(self, arg__1: str, parentWidget: typing.Optional[PySide2.QtWidgets.QWidget]=...) -> PySide2.QtWidgets.QWidget
load(self, device: PySide2.QtCore.QIODevice, parentWidget: typing.Optional[PySide2.QtWidgets.QWidget]=...) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#load
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtUiTools.QUiLoader.objectNameChanged; argument details are not documented.
pluginPaths
pluginPaths() -> tuple
X.pluginPaths() -> tuple
Supplemental documentation: Qt 5 reference:
QStringList QUiLoader::pluginPaths() const
Returns a list naming the paths in which the loader will search when locating custom widget plugins.
See also addPluginPath() and clearPluginPaths().
Upstream PySide2 reference signatures (binding differences may apply):
pluginPaths(self) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#pluginPaths
setLanguageChangeEnabled
setLanguageChangeEnabled(enabled: bool) -> None
X.setLanguageChangeEnabled(enabled)
Supplemental documentation: Qt 5 reference:
void QUiLoader::setLanguageChangeEnabled(bool enabled)
If enabled is true, user interfaces loaded by this loader will automatically retranslate themselves upon receiving a language change event. Otherwise, the user interfaces will not be retranslated.
This function was introduced in Qt 4.5.
See also isLanguageChangeEnabled().
Upstream PySide2 reference signatures (binding differences may apply):
setLanguageChangeEnabled(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#setLanguageChangeEnabled
setTranslationEnabled
setTranslationEnabled(enabled: bool) -> None
X.setTranslationEnabled(enabled)
Upstream PySide2 reference signatures (binding differences may apply):
setTranslationEnabled(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#setTranslationEnabled
setWorkingDirectory
setWorkingDirectory(dir: Any) -> None
X.setWorkingDirectory(dir)
Supplemental documentation: Qt 5 reference:
void QUiLoader::setWorkingDirectory(const QDir \&dir)
Sets the working directory of the loader to dir. The loader will look for other resources, such as icons and resource files, in paths relative to this directory.
See also workingDirectory().
Upstream PySide2 reference signatures (binding differences may apply):
setWorkingDirectory(self, dir: PySide2.QtCore.QDir) -> None
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#setWorkingDirectory
workingDirectory
workingDirectory() -> Any
X.workingDirectory() -> PythonQt.QtCore.QDir
Supplemental documentation: Qt 5 reference:
QDir QUiLoader::workingDirectory() const
Returns the working directory of the loader.
See also setWorkingDirectory().
Upstream PySide2 reference signatures (binding differences may apply):
workingDirectory(self) -> PySide2.QtCore.QDir
Source: https://doc.qt.io/archives/qt-5.15/quiloader.html#workingDirectory