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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QSystemLocale Class Reference
[QtCore module]

The QSystemLocale class can be used to finetune the system locale of the user. More...

 #include <QSystemLocale>

This class was introduced in Qt 4.2.

Public Types

  • enum QueryType { LanguageId, CountryId, DecimalPoint, GroupSeparator, ..., PMText }

Public Functions


Detailed Description

The QSystemLocale class can be used to finetune the system locale of the user.

Warning: This class is only useful in very rare cases. Usually QLocale offers all the functionality required for application development.

QSystemLocale allows to override the values provided by the system locale (QLocale::system()).

See also QLocale.


Member Type Documentation

enum QSystemLocale::QueryType

Specifies the type of information queried by query(). For each value the type of information to return from the query() method is listed.

ConstantValueDescription
QSystemLocale::LanguageId0a uint specifying the language.
QSystemLocale::CountryId1a uint specifying the country.
QSystemLocale::DecimalPoint2a QString specifying the decimal point.
QSystemLocale::GroupSeparator3a QString specifying the group separator.
QSystemLocale::ZeroDigit4a QString specifying the zero digit.
QSystemLocale::NegativeSign5a QString specifying the minus sign.
QSystemLocale::PositiveSign23a QString specifying the plus sign.
QSystemLocale::DateFormatLong6a QString specifying the long date format
QSystemLocale::DateFormatShort7a QString specifying the short date format
QSystemLocale::TimeFormatLong8a QString specifying the long time format
QSystemLocale::TimeFormatShort9a QString specifying the short time format
QSystemLocale::DayNameLong10a QString specifying the name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)
QSystemLocale::DayNameShort11a QString specifying the short name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)
QSystemLocale::MonthNameLong12a QString specifying the name of a month. the in variant contains an integer between 1 and 12
QSystemLocale::MonthNameShort13a QString specifying the short name of a month. the in variant contains an integer between 1 and 12
QSystemLocale::DateToStringLong14converts the QDate stored in the in variant to a QString using the long date format
QSystemLocale::DateToStringShort15converts the QDate stored in the in variant to a QString using the short date format
QSystemLocale::TimeToStringLong16converts the QTime stored in the in variant to a QString using the long time format
QSystemLocale::TimeToStringShort17converts the QTime stored in the in variant to a QString using the short time format
QSystemLocale::DateTimeFormatLong18a QString specifying the long date time format
QSystemLocale::DateTimeFormatShort19a QString specifying the short date time format
QSystemLocale::DateTimeToStringLong20converts the QDateTime in the in variant to a QString using the long datetime format
QSystemLocale::DateTimeToStringShort21converts the QDateTime in the in variant to a QString using the short datetime format
QSystemLocale::MeasurementSystem22a QLocale::MeasurementSystem enum specifying the measurement system
QSystemLocale::AMText24a string that represents the system AM designator associated with a 12-hour clock.
QSystemLocale::PMText25a string that represents the system PM designator associated with a 12-hour clock.


Member Function Documentation

QSystemLocale::QSystemLocale ()

Constructs a QSystemLocale object. The constructor will automatically install this object as the system locale and remove any earlier installed system locales.

QSystemLocale::~QSystemLocale ()   [virtual]

Deletes the object.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Microsoft ouvre aux autres compilateurs C++ AMP, la spécification pour la conception d'applications parallèles C++ utilisant le GPU 22
  2. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  3. RIM : « 13 % des développeurs ont gagné plus de 100 000 $ sur l'AppWord », Qt et open-source au menu du BlackBerry DevCon Europe 0
  4. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 10
  5. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
Page suivante

Le Qt Quarterly au hasard

Logo

Déployer dans le Bazaar

Qt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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 4.5
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