Does QDir impose a maximum path limit on Windows?



  • Dear Qt experts,

    I was reading through Qt Assistant 5.3.2 and I didn't found info on this topic. I'm using Windows 7 SP1 64-bit. According to the Windows API functions the unicode versions of the functions like CreateFileW have a path limit of 32,767 wide characters when the path is prepended with "\\?\". Does Qt call the winapi functions with this prepend? I hope QDir isn't limited by MAX_PATH of 260 characters. But I think I still have the responsibility not to exceed the number of 32,767 for Qt development on Windows, right?

    Thank you very much for your attention and time!
    Best regards,
    Maarten


  • Qt Champions 2016

    @Maarten-Verhage said in Does QDir impose a maximum path limit on Windows?:

    When the path is prepended with "\?". Does Qt call the winapi functions with this prepend?

    Yes, here and here.

    But I think I still have the responsibility not to exceed the number of 32,767 for Qt development on Windows, right?

    As far as I can see in the source, yes, you do.


Log in to reply
 

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