Obsolete Members for QLocale

以下成員源於類 QLocale 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) QString formattedDataSize (qint64 bytes , int precision = 2, QLocale::DataSizeFormats format = DataSizeIecFormat)
(obsolete) QTime toTime (const QString & string , QLocale::FormatType format , QCalendar cal ) const
(obsolete) QTime toTime (const QString & string , const QString & format , QCalendar cal ) const

靜態公共成員

(obsolete) QList<QLocale::Country> countriesForLanguage (QLocale::Language 語言 )

成員函數文檔編製

[static] QList < QLocale::Country > QLocale:: countriesForLanguage ( QLocale::Language 語言 )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Returns the list of countries that have entries for 語言 in Qt's locale database. If the result is an empty list, then 語言 is not represented in Qt's locale database.

該函數在 Qt 4.3 引入。

另請參閱 matchingLocales ().

QString QLocale:: formattedDataSize ( qint64 bytes , int precision = 2, QLocale::DataSizeFormats format = DataSizeIecFormat)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Use the const version instead.

QTime QLocale:: toTime (const QString & string , QLocale::FormatType format , QCalendar cal ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

該函數在 Qt 5.14 引入。

QTime QLocale:: toTime (const QString & string , const QString & format , QCalendar cal ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

該函數在 Qt 5.14 引入。