以下成员源于类 QDateTime are part of the Qt compatibility layer. We advise against using them in new code.
| void | setTime_t (uint secsSince1Jan1970UTC , Qt::TimeSpec spec ) |
| QDateTime | currentDateTime (Qt::TimeSpec spec ) |
[static]
QDateTime
QDateTime::
currentDateTime
(
Qt::TimeSpec
spec
)
使用 currentDateTime () overload that takes no parameters instead.
Use the single-argument overload of setTime_t () 代替。