sorry but I did not understand what you mean , can you write example
thanks
sorry but I did not understand what you mean , can you write example
thanks
I don't think so, because I bring the date from the file system
QDateTime QFileInfo::lastModified () const
so the return value will be type QDateTime
and also i used MyFile object to access other data such as file name and size , its output right data , which means the file object is point to file in right way ... so lastModified should return value of type QDateTime and I need to covert it to string ... but whatever i try its output nothing !
Think is good, but check is better. What does this write:
Qt Code:
qDebug() <<MyFile.lastModified().isValid();To copy to clipboard, switch view to plain text mode
its output false !!!
but way !?
Qt Code:
qDebug() <<MyFile.fileName() qDebug() <<MyFile.lastModified().isValid();To copy to clipboard, switch view to plain text mode
since its return the file name , why its dont return the last modified date !!! ?
What about:
Qt Code:
qDebug() <<MyFile.exists();To copy to clipboard, switch view to plain text mode
return false![]()
Case solved, right?![]()
yes sir, sorry for disturbance
![]()
Bookmarks