以下成員源於類 QDate 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
bool
|
setYMD (int y , int m , int d ) |
(obsolete)
QString
|
longDayName (int weekday , QDate::MonthNameType type = DateFormat) |
(obsolete)
QString
|
longMonthName (int month , QDate::MonthNameType type = DateFormat) |
(obsolete)
QString
|
shortDayName (int weekday , QDate::MonthNameType type = DateFormat) |
(obsolete)
QString
|
shortMonthName (int month , QDate::MonthNameType type = DateFormat) |
[static]
QString
QDate::
longDayName
(
int
weekday
,
QDate::MonthNameType
type
= DateFormat)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns the long name of the weekday for the representation specified by type .
The days are enumerated using the following convention:
The day names will be localized according to the system's locale settings, i.e. using QLocale::system ().
Returns an empty string if the date is invalid.
該函數在 Qt 4.5 引入。
另請參閱 toString (), shortDayName (), shortMonthName (),和 longMonthName ().
[static]
QString
QDate::
longMonthName
(
int
month
,
QDate::MonthNameType
type
= DateFormat)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns the long name of the month for the representation specified by type .
The months are enumerated using the following convention:
The month names will be localized according to the system's locale settings, i.e. using QLocale::system ().
Returns an empty string if the date is invalid.
該函數在 Qt 4.5 引入。
另請參閱 toString (), shortMonthName (), shortDayName (),和 longDayName ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Sets the date's year y , month m , and day d .
若
y
is in the range 0 to 99, it is interpreted as 1900 to 1999. Returns
false
if the date is invalid.
使用 setDate () 代替。
[static]
QString
QDate::
shortDayName
(
int
weekday
,
QDate::MonthNameType
type
= DateFormat)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns the short name of the weekday for the representation specified by type .
The days are enumerated using the following convention:
The day names will be localized according to the system's locale settings, i.e. using QLocale::system ().
Returns an empty string if the date is invalid.
該函數在 Qt 4.5 引入。
另請參閱 toString (), shortMonthName (), longMonthName (),和 longDayName ().
[static]
QString
QDate::
shortMonthName
(
int
month
,
QDate::MonthNameType
type
= DateFormat)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Returns the short name of the month for the representation specified by type .
The months are enumerated using the following convention:
The month names will be localized according to the system's locale settings, i.e. using QLocale::system ().
Returns an empty string if the date is invalid.
該函數在 Qt 4.5 引入。
另請參閱 toString (), longMonthName (), shortDayName (),和 longDayName ().