QLibraryInfo Class▲
-
Header: QLibraryInfo
-
qmake: QT += core
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▲
See also QSysInfo, Using qt.conf
Member Type Documentation▲
enum QLibraryInfo::LibraryLocation▲
This enum type is used to specify a specific location specifier:
Constant |
Value |
Description |
---|---|---|
QLibraryInfo::PrefixPath |
0 |
The default prefix for all paths. |
QLibraryInfo::DocumentationPath |
1 |
The location for documentation upon install. |
QLibraryInfo::HeadersPath |
2 |
The location for all headers. |
QLibraryInfo::LibrariesPath |
3 |
The location of installed libraries. |
QLibraryInfo::LibraryExecutablesPath |
4 |
The location of installed executables required by libraries at runtime. |
QLibraryInfo::BinariesPath |
5 |
The location of installed Qt binaries (tools and applications). |
QLibraryInfo::PluginsPath |
6 |
The location of installed Qt plugins. |
QLibraryInfo::ImportsPath |
7 |
The location of installed QML extensions to import (QML 1.x). |
QLibraryInfo::Qml2ImportsPath |
8 |
The location of installed QML extensions to import (QML 2.x). |
QLibraryInfo::ArchDataPath |
9 |
The location of general architecture-dependent Qt data. |
QLibraryInfo::DataPath |
10 |
The location of general architecture-independent Qt data. |
QLibraryInfo::TranslationsPath |
11 |
The location of translation information for Qt strings. |
QLibraryInfo::ExamplesPath |
12 |
The location for examples upon install. |
QLibraryInfo::TestsPath |
13 |
The location of installed Qt testcases. |
QLibraryInfo::SettingsPath |
100 |
The location for Qt settings. Not applicable on Windows. |
See Also▲
See also location()
Member Function Documentation▲
[static, since 5.0] bool QLibraryInfo::isDebugBuild()▲
Returns true if this build of Qt was built with debugging enabled, or false if it was built in release mode.
This function was introduced in Qt 5.0.
[static] QString QLibraryInfo::location(QLibraryInfo::LibraryLocation loc)▲
Returns the location specified by loc.
[static, since 5.8] QVersionNumber QLibraryInfo::version()▲
Obsolete Members for QLibraryInfo▲
The following members of class QLibraryInfo are deprecated. We strongly advise against using them in new code.
Obsolete Member Function Documentation▲
[static, since 4.6] QDate QLibraryInfo::buildDate()▲
This function is deprecated. We strongly advise against using it in new code.
This function used to return the installation date for this build of Qt, but now returns a constant date.
This function was introduced in Qt 4.6.
[static] QString QLibraryInfo::licensedProducts()▲
This function is deprecated. We strongly advise against using it in new code.
This function used to return the products that the license for this build of Qt has access to, now returns an empty string.
[static] QString QLibraryInfo::licensee()▲
This function is deprecated. We strongly advise against using it in new code.
This function used to return the person to whom this build of Qt is licensed, now returns an empty string.