anjinkristou

File name with date in Qt

Apr 11th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. QDateTime now = QDateTime::currentDateTime();
  2. QString fullLogFileName = logFileBaseName + " " + now.toString(Qt::ISODate).replace(":", "-") + ".csv";
Advertisement
Add Comment
Please, Sign In to add comment