Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

QLibraryInfo Class Reference
[модуль QtCore]

The QLibraryInfo class provides information about the Qt library. Далее...

 #include <QLibraryInfo>

Открытые типы

Статические открытые члены


Подробное описание

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.

Функция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. Для получения дополнительной информации, смотрите документацию Использование qt.conf.

See also QSysInfo and Using qt.conf.


Описание типов

enum QLibraryInfo::LibraryLocation

This enum type is used to specify a specific location specifier:

КонстантаЗначениеОписание
QLibraryInfo::PrefixPath0The default prefix for all paths.
QLibraryInfo::DocumentationPath1The location for documentation upon install.
QLibraryInfo::HeadersPath2The location for all headers.
QLibraryInfo::LibrariesPath3The location of installed librarires.
QLibraryInfo::BinariesPath4The location of installed Qt binaries (tools and applications).
QLibraryInfo::PluginsPath5The location of installed Qt plugins.
QLibraryInfo::DataPath6The location of general Qt data.
QLibraryInfo::TranslationsPath7The location of translation information for Qt strings.
QLibraryInfo::SettingsPath8The location for Qt settings.
QLibraryInfo::ExamplesPath10The location for examples upon install.
QLibraryInfo::DemosPath9The location for demos upon install.

See also location().


Описание функций-членов

QString QLibraryInfo::buildKey ()   [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.

See also location().

QString QLibraryInfo::licensedProducts ()   [static]

Returns the products that the license for this build of Qt has access to.

See also licensee().

QString QLibraryInfo::licensee ()   [static]

Returns the person to whom this build of Qt is licensed.

See also licensedProducts().

QString QLibraryInfo::location ( LibraryLocation loc )   [static]

Returns the location specified by loc.


Copyright © 2008 Trolltech Торговые марки
Qt 4.3.5