开发者

Qt drag drop UNC path

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜