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 language )

成员函数文档编制

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

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Returns the list of countries that have entries for language in Qt's locale database. If the result is an empty list, then language 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 引入。