Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

QLibraryInfo Class Reference

The QLibraryInfo class provides information about the Qt library. More...

#include <QLibraryInfo>

Part of the QtCore module.

Public Types

Static Public Members


Detailed Description

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.


Member Type Documentation

enum QLibraryInfo::LibraryLocation

This enum type is used to specify a specific location specifier. This for use with QLibraryInfo::location.

The locations are

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

Member Function Documentation

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

QSettings * QLibraryInfo::configuration ()   [static]

Returns the active configuration information settings. This is normally only usefull for debugging but could be usefull to retrieve custom information. Do not destruct the return value as QLibrary retains ownership. Qt will automatically find the configuration file by looking (in order):

If no configuration can be found then zero will be returned.

See also QLibrayInfo::location and QSettings.

QString QLibraryInfo::licensedProducts ()   [static]

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

See also QLibraryInfo::licensee.

QString QLibraryInfo::licensee ()   [static]

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

See also QLibraryInfo::licensedProducts.

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

Returns the location specified by loc.

See also QLibraryInfo::LibraryLocation and QLibraryInfo::configuration.


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2