Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Resolve for QUrl On Windows mimatch error

$
0
0
 QString str = QDir(fi.absolutePath()).absolutePath();  wchar_t fullpath[MAX_PATH] = {0};  wchar_t shortpath[MAX_PATH] = {0};  GetShortPathNameW(str.toStdWString().c_str(), shortpath, MAX_PATH);  GetLongPathNameW(shortpath, fullpath, MAX_PATH);  QDir::setCurrent(QString::fromUtf16(fullpath));

Viewing all articles
Browse latest Browse all 18427

Trending Articles