PySide6.QtCore.QLibraryInfo¶
- class QLibraryInfo¶
The
QLibraryInfoclass provides information about the Qt libraries.Details
This class provides an abstraction for accessing information about the Qt libraries which the application is using, such as run-time paths, or the build configuration of the Qt libraries.
The default run-time paths depend on the Qt build configuration, as well as whether the Qt libraries have been relocated, and possibly bundled along with the application.
You can use a
qt.conffile to override the default paths, in case your deployment situation does not match the defaults. For more information, see the Using qt.conf documentation.See also
QSysInfoconfSynopsis¶
Methods¶
def
build()def
isDebugBuild()def
isSharedBuild()def
location()def
path()def
paths()def
version()
Static functions¶
def
build()def
isDebugBuild()def
isSharedBuild()def
location()def
path()def
paths()def
version()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class LibraryPath¶
This enum type is used to query for a specific path:
Constant
Description
QLibraryInfo.LibraryPath.PrefixPath
The default prefix for all paths.
QLibraryInfo.LibraryPath.DocumentationPath
The path to documentation upon install.
QLibraryInfo.LibraryPath.HeadersPath
The path to all headers.
QLibraryInfo.LibraryPath.LibrariesPath
The path to installed libraries.
QLibraryInfo.LibraryPath.LibraryExecutablesPath
The path to installed executables required by libraries at runtime.
QLibraryInfo.LibraryPath.BinariesPath
The path to installed Qt binaries (tools and applications).
QLibraryInfo.LibraryPath.PluginsPath
The path to installed Qt plugins.
QLibraryInfo.LibraryPath.QmlImportsPath
The path to installed QML extensions to import.
QLibraryInfo.LibraryPath.Qml2ImportsPath
This value is deprecated. Use QmlImportsPath instead.
QLibraryInfo.LibraryPath.ArchDataPath
The path to general architecture-dependent Qt data.
QLibraryInfo.LibraryPath.DataPath
The path to general architecture-independent Qt data.
QLibraryInfo.LibraryPath.TranslationsPath
The path to translation information for Qt strings.
QLibraryInfo.LibraryPath.ExamplesPath
The path to examples upon install.
QLibraryInfo.LibraryPath.TestsPath
The path to installed Qt testcases.
QLibraryInfo.LibraryPath.SettingsPath
The path to Qt settings. Not applicable on Windows.
See also
- static build()¶
- Return type:
str
- static isDebugBuild()¶
- Return type:
bool
Returns
trueif this build of Qt was built with debugging enabled, or false if it was built in release mode.- Return type:
bool
Returns
trueif this is a shared (dynamic) build of Qt.- static location(location)¶
- Parameters:
location –
LibraryPath- Return type:
str
Note
This function is deprecated.
Use
path()instead.Returns the path specified by
loc.- static path(p)¶
- Parameters:
p –
LibraryPath- Return type:
str
Returns the path specified by
p.If there is more than one path listed in qt.conf, it will only return the first one.
See also
- static paths(p)¶
- Parameters:
p –
LibraryPath- Return type:
list of strings
Returns all paths specificied by
p.See also
- static platformPluginArguments(platformName)¶
- Parameters:
platformName – str
- Return type:
list of strings
- static version()¶
- Return type:
Returns the version of the Qt library.
See also
qVersion()