Unsolved Can we use "\\?\" with QDir?
-
Hello,
So, I'm trying to bypass the 260 characters path limit. I read here that we can prepend the path with\\?\
to achieve this, but it doesn't work.
Actually, eventemp.mkpath("\\\\?\\C:\\standard path");
doesn't work, whiletemp.mkpath("C:\\standard path");
does work.
So, is there any way to bypass the path length limit without modifying the registry?
Thanks. -
Considering that I'm not developing on Windows, it seems that your question has been already been answered by your link.
To be more explicit, the source code of Qt will already automatically prepend the path with "\?", look at the links in the discussion you linked:
https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qfsfileengine_win.cpp#n86
-
@Gianluca said in Can we use "\\?\" with QDir?:
Considering that I'm not developing on Windows, it seems that your question has been already been answered by your link.
To be more explicit, the source code of Qt will already automatically prepend the path with "\?", look at the links in the discussion you linked:
https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qfsfileengine_win.cpp#n86
I see, thanks.
Then, I don't understand why path lenght is still limited. If I try to create a long path, it won't work and I don't understand why.