Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QLibraryInfo Class

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

 #include <QLibraryInfo>

Public Types

enum LibraryLocation { PrefixPath, DocumentationPath, HeadersPath, LibrariesPath, ..., SettingsPath }

Static Public Members

QDate buildDate()
bool isDebugBuild()
QString licensedProducts()
QString licensee()
QString location(LibraryLocation loc)

Detailed Description

The QLibraryInfo class provides information about the Qt library.

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 and Using qt.conf.

Member Type Documentation

enum QLibraryInfo::LibraryLocation

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

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 libraries.
QLibraryInfo::BinariesPath4The location of installed Qt binaries (tools and applications).
QLibraryInfo::PluginsPath5The location of installed Qt plugins.
QLibraryInfo::ImportsPath6The location of installed QML extensions to import.
QLibraryInfo::DataPath7The location of general Qt data.
QLibraryInfo::TranslationsPath8The location of translation information for Qt strings.
QLibraryInfo::ExamplesPath9The location for examples upon install.
QLibraryInfo::TestsPath10The location of installed Qt testcases.
QLibraryInfo::SettingsPath100The location for Qt settings. Not applicable on Windows.

See also location().

Member Function Documentation

QDate QLibraryInfo::buildDate() [static]

Returns the installation date for this build of Qt. The install date will usually be the last time that Qt sources were configured.

This function was introduced in Qt 4.6.

bool QLibraryInfo::isDebugBuild() [static]

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.

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.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web