QLibraryInfo¶
The
QLibraryInfo
class provides information about the Qt library. More…
Synopsis¶
Static functions¶
def
build
()def
buildDate
()def
isDebugBuild
()def
licensedProducts
()def
licensee
()def
location
(arg__1)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 PySide2.QtCore.QLibraryInfo¶
- PySide2.QtCore.QLibraryInfo.LibraryLocation¶
This enum type is used to specify a specific location specifier:
Constant
Description
QLibraryInfo.PrefixPath
The default prefix for all paths.
QLibraryInfo.DocumentationPath
The location for documentation upon install.
QLibraryInfo.HeadersPath
The location for all headers.
QLibraryInfo.LibrariesPath
The location of installed libraries.
QLibraryInfo.LibraryExecutablesPath
The location of installed executables required by libraries at runtime.
QLibraryInfo.BinariesPath
The location of installed Qt binaries (tools and applications).
QLibraryInfo.PluginsPath
The location of installed Qt plugins.
QLibraryInfo.ImportsPath
The location of installed QML extensions to import (QML 1.x).
QLibraryInfo.Qml2ImportsPath
The location of installed QML extensions to import (QML 2.x).
QLibraryInfo.ArchDataPath
The location of general architecture-dependent Qt data.
QLibraryInfo.DataPath
The location of general architecture-independent Qt data.
QLibraryInfo.TranslationsPath
The location of translation information for Qt strings.
QLibraryInfo.ExamplesPath
The location for examples upon install.
QLibraryInfo.TestsPath
The location of installed Qt testcases.
QLibraryInfo.SettingsPath
The location for Qt settings. Not applicable on Windows.
See also
- static PySide2.QtCore.QLibraryInfo.build()¶
- Return type:
str
Returns a string describing how this version of Qt was built.
- static PySide2.QtCore.QLibraryInfo.buildDate()¶
- Return type:
Note
This function is deprecated.
This function used to return the installation date for this build of Qt, but now returns a constant date.
- static PySide2.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 PySide2.QtCore.QLibraryInfo.licensedProducts()¶
- Return type:
str
Note
This function is deprecated.
This function used to return the products that the license for this build of Qt has access to, now returns an empty string.
- static PySide2.QtCore.QLibraryInfo.licensee()¶
- Return type:
str
Note
This function is deprecated.
This function used to return the person to whom this build of Qt is licensed, now returns an empty string.
- static PySide2.QtCore.QLibraryInfo.location(arg__1)¶
- Parameters:
arg__1 –
LibraryLocation
- Return type:
str
Returns the location specified by
loc
.
- static PySide2.QtCore.QLibraryInfo.platformPluginArguments(platformName)¶
- Parameters:
platformName – str
- Return type:
list of strings
Returns additional arguments to the platform plugin matching
platformName
which can be specified as a string list using the keyArguments
in a group calledPlatforms
of theqt.conf
file.sa {Using qt.conf}
- static PySide2.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.