[solved]Why QFileInfo.created(); is invalid in Android?
Mobile and Embedded
5
Posts
2
Posters
1.4k
Views
1
Watching
-
wrote on 23 Jul 2014, 13:33 last edited by
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 ?
-
wrote on 24 Jul 2014, 05:54 last edited by
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.
-
wrote on 24 Jul 2014, 14:18 last edited by
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 :)
1/5