开发者

Qt drag drop UNC path

开发者 https://www.devze.com 2023-03-25 08:46 出处:网络
when dragging a file from path \\\\Nearlinestorage\\anc\\sequences\\anc_SH_005\\2d\\cgRen开发者_JAVA技巧ders\\Maya_Files\\28.07.11

when dragging a file from path

\\Nearlinestorage\anc\sequences\anc_SH_005\2d\cgRen开发者_JAVA技巧ders\Maya_Files\28.07.11

in lineEdit area it cuts \\nearlinestorage when reading ui->lineedit->text()

how is it possible to get the whole path


solved. Problem is in the droparea::dropevent(QDropEvent *event). I replaced

QString url = urlList.at(i).path();

with

QString url = urlList.at(i).toLocalFile();

I get proper result ( as expected ).


Make sure the QLineEdit doesn't have a minimum number of characters set.

0

精彩评论

暂无评论...
验证码 换一张
取 消