QLibraryInfo¶
The QLibraryInfo
class provides information about the Qt library. More…
Synopsis¶
Static functions¶
def
build
()def
isDebugBuild
()def
location
(location)def
path
(p)def
platformPluginArguments
(platformName)def
version
()
Detailed Description¶
Many pieces of information are established when Qt is configured and built. This class provides an abstraction for accessing that information. By using the static functions of this class, an application can obtain information about the instance of the Qt library which the application is using at run-time.
You can also use a qt.conf
file to override the hard-coded paths that are compiled into the Qt library. For more information, see the Using qt.conf documentation.
See also
QSysInfo
conf
- class PySide6.QtCore.QLibraryInfo¶
- PySide6.QtCore.QLibraryInfo.LibraryPath¶
This enum type is used to query for a specific path:
Constant
Description
QLibraryInfo.PrefixPath
The default prefix for all paths.
QLibraryInfo.DocumentationPath
The path to documentation upon install.
QLibraryInfo.HeadersPath
The path to all headers.
QLibraryInfo.LibrariesPath
The path to installed libraries.
QLibraryInfo.LibraryExecutablesPath
The path to installed executables required by libraries at runtime.
QLibraryInfo.BinariesPath
The path to installed Qt binaries (tools and applications).
QLibraryInfo.PluginsPath
The path to installed Qt plugins.
QLibraryInfo.QmlImportsPath
The path to installed QML extensions to import.
QLibraryInfo.Qml2ImportsPath
The path to installed QML extensions to import.
QLibraryInfo.ArchDataPath
The path to general architecture-dependent Qt data.
QLibraryInfo.DataPath
The path to general architecture-independent Qt data.
QLibraryInfo.TranslationsPath
The path to translation information for Qt strings.
QLibraryInfo.ExamplesPath
The path to examples upon install.
QLibraryInfo.TestsPath
The path to installed Qt testcases.
QLibraryInfo.SettingsPath
The path to Qt settings. Not applicable on Windows.
See also
- static PySide6.QtCore.QLibraryInfo.build()¶
- Return type
str
- static PySide6.QtCore.QLibraryInfo.isDebugBuild()¶
- Return type
bool
Returns true
if this build of Qt was built with debugging enabled, or false if it was built in release mode.
- static PySide6.QtCore.QLibraryInfo.location(location)¶
- Parameters
location –
LibraryPath
- Return type
str
Note
This function is deprecated.
Use path()
instead.
Returns the path specified by loc
.
- static PySide6.QtCore.QLibraryInfo.path(p)¶
- Parameters
p –
LibraryPath
- Return type
str
Returns the path specified by p
.
- static PySide6.QtCore.QLibraryInfo.platformPluginArguments(platformName)¶
- Parameters
platformName – str
- Return type
list of strings
- static PySide6.QtCore.QLibraryInfo.version()¶
- Return type
Returns the version of the Qt library.
See also
qVersion()
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.