标签:
我用的功能:
1 //strTempDataFloader.sprintf ("/%04d/%02d/%02d/%s_filelist_%04d%02d%02d.txt", 2 // dt1.date().year(), dt1.date().month(), dt1.date().day(), 3 // strType.data(), dt1.date().year(), dt1.date().month(), dt1.date().day()); 4 strTempDataFloader = QString ("/%1/%2/%3/%4_filelist_%1%2%3.txt").arg (dt1.toString ("yyyy"), dt1.toString ("MM"), dt1.toString ("dd"), strType);
1 //QString strTemp = QString ("%02").arg (a, 2, 10, QChar (‘0‘)); 2 //// QDateTime dt = QDateTime::fromString (QString ("%1-%2-%3").arg (iYear).arg (iMonth).arg (ui.calendarWidget->selectedDate().toString (tr ("dd "))), "yyyy-MM-dd"); 3 //ui.timeLabel->setText (QString ("%1-%2-%3").arg (iYear).arg (iMonth, 2, 10, QChar (‘0‘)).arg (ui.calendarWidget->selectedDate().toString (tr ("dd ")), 2)); 4 //// QMessageBox::information (this, "test", FileOpeartion::GetTheTextContent (QString::number (iYear, 10)));
标签:
原文地址:http://www.cnblogs.com/ants-double/p/5902339.html