QDateTime?QDateTime::fromTime_t(uint?seconds,?Qt::TimeSpec?spec,?int?offsetSeconds?=?0)
QDateTime?QDateTime::fromTime_t(uint?seconds,?const?QTimeZone?&?timeZone)
以上函數都可以實現妳要的功能,妳應該多看Qt的幫助文檔啊……