QLibraryInfoclass provides information about the Qt library. 更多 …
def
build
()
def
buildDate
()
def
isDebugBuild
()
def
licensedProducts
()
def
licensee
()
def
location
(arg__1)
def
platformPluginArguments
(platformName)
def
version
()
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.conffile to override the hard-coded paths that are compiled into the Qt library. For more information, see the Using qt.conf documentation.另请参阅
QSysInfoconf
PySide2.QtCore.QLibraryInfo.
LibraryLocation
¶
This enum type is used to specify a specific location specifier:
|
常量 |
描述 |
|---|---|
|
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. |
另请参阅
PySide2.QtCore.QLibraryInfo.
build
(
)
¶
str
Returns a string describing how this version of Qt was built.
PySide2.QtCore.QLibraryInfo.
buildDate
(
)
¶
注意
此函数被弃用。
This function used to return the installation date for this build of Qt, but now returns a constant date.
PySide2.QtCore.QLibraryInfo.
isDebugBuild
(
)
¶
bool
返回
true
if this build of Qt was built with debugging enabled, or false if it was built in release mode.
PySide2.QtCore.QLibraryInfo.
licensedProducts
(
)
¶
unicode
注意
此函数被弃用。
This function used to return the products that the license for this build of Qt has access to, now returns an empty string.
PySide2.QtCore.QLibraryInfo.
licensee
(
)
¶
unicode
注意
此函数被弃用。
This function used to return the person to whom this build of Qt is licensed, now returns an empty string.
PySide2.QtCore.QLibraryInfo.
location
(
arg__1
)
¶
arg__1
–
LibraryLocation
unicode
Returns the location specified by
loc
.
PySide2.QtCore.QLibraryInfo.
platformPluginArguments
(
platformName
)
¶
platformName – unicode
字符串列表
Returns additional arguments to the platform plugin matching
platformName
which can be specified as a string list using the key
自变量
in a group called
平台
的
qt.conf
文件。
sa {Using qt.conf}
PySide2.QtCore.QLibraryInfo.
version
(
)
¶
Returns the version of the Qt library.
另请参阅
qVersion()