QLibraryInfo

The QLibraryInfo class provides information about the Qt library. More

Inheritance diagram of PySide2.QtCore.QLibraryInfo

Synopsis

Static functions

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

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

location()

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

QDate

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

unicode

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

unicode

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__1LibraryLocation

Return type

unicode

Returns the location specified by loc .

static PySide2.QtCore.QLibraryInfo.platformPluginArguments(platformName)
Parameters

platformName – unicode

Return type

list of strings

Returns additional arguments to the platform plugin matching platformName which can be specified as a string list using the key Arguments in a group called Platforms of the qt.conf file.

sa {Using qt.conf}

static PySide2.QtCore.QLibraryInfo.version()
Return type

QVersionNumber

Returns the version of the Qt library.

See also

qVersion()