qdatetime转qdate 在QT如何把从1970开始的秒数转成日期格式呢?急?
在QT如何把从1970开始的秒数转成日期格式呢?急?//很简单。。。//头文件#include<qdatetime>//seconds是自1970-01-01t00:00:00以来的秒数,qd
在QT如何把从1970开始的秒数转成日期格式呢?急?
//很简单。。。//头文件#include<qdatetime>//seconds是自1970-01-01t00:00:00以来的秒数,qdatetime DT=qdatetime::fromtime_ut(seconds)QString strDate=dt.toString公司(QT::systemlocalelongdate)//日期格式自定义
qstring与string的转换
1,
qstring转换字符串
字符串s=qstr.toStdString()
2,
字符串转换qstring
qstring qstr2=Qsting::fromstdstring()