Qt 4.8
|
The QLibraryInfo class provides information about the Qt library. More...
#include <qlibraryinfo.h>
Public Types | |
enum | LibraryLocation { PrefixPath, DocumentationPath, HeadersPath, LibrariesPath, BinariesPath, PluginsPath, DataPath, TranslationsPath, SettingsPath, DemosPath, ExamplesPath, ImportsPath } |
This enum type is used to specify a specific location specifier: More... | |
Static Public Functions | |
static QDate | buildDate () |
Returns the installation date for this build of Qt. More... | |
static QString | buildKey () |
Returns a unique key identifying this build of Qt and its configurations. More... | |
static QString | licensedProducts () |
Returns the products that the license for this build of Qt has access to. More... | |
static QString | licensee () |
Returns the person to whom this build of Qt is licensed. More... | |
static QString | location (LibraryLocation) |
Returns the location specified by loc. More... | |
Private Functions | |
QLibraryInfo () | |
You cannot create a QLibraryInfo, instead only the static functions are available to query information. More... | |
The QLibraryInfo class provides information about the Qt library.
Many pieces of information are established when Qt is configured. Installation paths, license information, and even a unique build key. This class provides an abstraction for accessing this information.
Function | Return value |
buildKey() | A string that identifies the Qt version and the configuration. This key is used to ensure that plugins link against the same version of Qt as the application. |
location() | The path to a certain Qt component (e.g., documentation, header files). |
licensee(), licensedProducts() | Licensing information. |
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.
Definition at line 56 of file qlibraryinfo.h.
This enum type is used to specify a specific location specifier:
library location
Enumerator | |
---|---|
PrefixPath | |
DocumentationPath | |
HeadersPath | |
LibrariesPath | |
BinariesPath | |
PluginsPath | |
DataPath | |
TranslationsPath | |
SettingsPath | |
DemosPath | |
ExamplesPath | |
ImportsPath |
Definition at line 67 of file qlibraryinfo.h.
|
private |
You cannot create a QLibraryInfo, instead only the static functions are available to query information.
Definition at line 182 of file qlibraryinfo.cpp.
|
static |
Returns the installation date for this build of Qt.
Definition at line 236 of file qlibraryinfo.cpp.
Referenced by qt_eval_days_left().
|
static |
Returns a unique key identifying this build of Qt and its configurations.
This key is not globally unique, rather only useful for establishing of two configurations are compatible. This can be used to compare with the QT_BUILD_KEY
preprocessor symbol.
Definition at line 221 of file qlibraryinfo.cpp.
|
static |
Returns the products that the license for this build of Qt has access to.
Definition at line 205 of file qlibraryinfo.cpp.
|
static |
Returns the person to whom this build of Qt is licensed.
Definition at line 192 of file qlibraryinfo.cpp.
Referenced by qt_eval_string().
|
static |
Returns the location specified by loc.
Definition at line 248 of file qlibraryinfo.cpp.
Referenced by QCoreApplicationPrivate::appendApplicationPathToLibraryPaths(), QPlatformFontDatabase::fontDir(), initDefaultPaths(), QCoreApplication::libraryPaths(), QDeclarativeImportDatabase::QDeclarativeImportDatabase(), QFontEngineQPF::QFontEngineQPF(), qwsFontPath(), QFactoryLoader::refreshAll(), and QCoreApplication::removeLibraryPath().