Last modified date is not reflecting instantly

  • Hello,
    I have implemented simple tree view in which i want to show file_name and its last modified date (2 columns). tree view has also add and remove button to add or remove files from tree view. now the problem is that when i add any file and if i will modify that file externally (like from text editor something like that) then it is not instantly showing me last modified date in tree view.

    I have to close my application and then again after reopening it, it showing me my changes
    I have used QDateTime lastModified() function for that?
    What changes should i implement so that it will change instantly?

  • why not try


    connect its signal to your model's slot.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.