Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFileDialog not showing modified date in certain directories

QFileDialog not showing modified date in certain directories

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 543 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Simple893
    wrote on last edited by
    #1

    I am having an issue where a user is not able to see date modified of files within certain directories in the file dialog on W10. This issue persists both with QFileDialog::getOpenFileName as well as making my own QFileDialog and using .exec(). I am setting the view mode to detail and the dialog opens up and correctly shows modified dates at first, but when browsed to certain directories the modified date is no longer shown. When the folder is opened in the W10 explorer, it shows modified date of files correctly. I tried searching for solutions elsewhere but I am lost as to how to fix this issue at this point.

    K JonBJ 2 Replies Last reply
    0
    • S Simple893

      I am having an issue where a user is not able to see date modified of files within certain directories in the file dialog on W10. This issue persists both with QFileDialog::getOpenFileName as well as making my own QFileDialog and using .exec(). I am setting the view mode to detail and the dialog opens up and correctly shows modified dates at first, but when browsed to certain directories the modified date is no longer shown. When the folder is opened in the W10 explorer, it shows modified date of files correctly. I tried searching for solutions elsewhere but I am lost as to how to fix this issue at this point.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Simple893

      Hi and welcome to devnet forum

      Which version of Qt are you using?

      AFAIK QFileDialog is based by default on native dialog of your OS. For windows 10 it shall use the native Windows 10 dialog then.

      Are you using special options with the call of QFileDialog?
      Best would be to give a short code snippet high-lighting how you are calling QFileDialog when the problem is showing.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • S Simple893

        I am having an issue where a user is not able to see date modified of files within certain directories in the file dialog on W10. This issue persists both with QFileDialog::getOpenFileName as well as making my own QFileDialog and using .exec(). I am setting the view mode to detail and the dialog opens up and correctly shows modified dates at first, but when browsed to certain directories the modified date is no longer shown. When the folder is opened in the W10 explorer, it shows modified date of files correctly. I tried searching for solutions elsewhere but I am lost as to how to fix this issue at this point.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @Simple893
        Are you or are are you not passing QFileDialog::DontUseNativeDialog? That's what determines whether you use the Windows native dialog or the Qt one.

        One guess: assuming you are using Windows native dialog, I think even if you specify a view mode like "detail", Windows allows individual directories to have their own personalized view mode saved and that might be why the display changes from directory to directory. Comparing against File Explorer (which is not a dialog) is not fair, instead try opening a file from, say, Notepad and see whether behaviour the same?

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved