基础 QDateTime::currentDateTime() //当前的日期和时间。 QDateTime::toString() //以特定的格式输出时间, 格式 yyyy: 年份(4位数) MM: 月份(两位数,07表示七月) dd: 日期(两位数,01表示第一天) hh: