[solved]Why QFileInfo.created(); is invalid in Android?
-
This function return a invalid QDateTime.
Is there some other way to solve this?
Thanks a lot! -
Hi,
Can you provide an minimal example that helps test this behavior ?
-
I use QFileInfo temp(dir,filename) set file path to QfileInfo,then QFileinfoList.append(temp) to make a list of my file. When I try to output QFileInfo.created() by qDebug, It show me "QDateTime(" Qt::LocalTime")"...(isValid return false)But if I used .fileName is work.
-
I work it out myself.. It doesn't work because I usd a QStringList as file list and use QFileInfo.setPath() to get the file info
-
Nice you found out and thanks for sharing.
Can you also please update the thread title prepending [solved] so other forum users may know a solution has been found :)