内容表

上一话题

QJsonValue

下一话题

QLine

QLibraryInfo

QLibraryInfo class provides information about the Qt library. 更多

Inheritance diagram of PySide2.QtCore.QLibraryInfo

概要

静态函数

详细描述

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.

另请参阅

QSysInfo conf

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.

另请参阅

location()

static PySide2.QtCore.QLibraryInfo. build ( )
返回类型

str

Returns a string describing how this version of Qt was built.

static PySide2.QtCore.QLibraryInfo. buildDate ( )
返回类型

QDate

注意

此函数被弃用。

This function used to return the installation date for this build of Qt, but now returns a constant date.

static 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.

static 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.

static 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.

static PySide2.QtCore.QLibraryInfo. location ( arg__1 )
参数

arg__1 LibraryLocation

返回类型

unicode

Returns the location specified by loc .

static 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}

static PySide2.QtCore.QLibraryInfo. version ( )
返回类型

QVersionNumber

Returns the version of the Qt library.

另请参阅

qVersion()