QUrl::toDisplayString(PreferLocalFile)

Dominik Haumann dhaumann at kde.org
Sun Dec 20 18:19:50 UTC 2015


Hi Kevin / all,

KUrlRequester::setUrl(QUrl url) calls url.toDisplayString(Qt::PreferLocalFile).
This leads to locations like "/C:/....", i.e. a leading '/' is prepended.

This issue was once raised in
http://lists.qt-project.org/pipermail/development/2014-August/018002.html
but it seems that no action was taken, correct?

Due to this issue, the find in files plugin typically uses a path that
does not work,
i.e. one always has to remove '/' manually before doing the search.

Any Infos on this? Was a qt bug report ever filed?

Or is there a bug in KUrlRequester, and PreferLocalFile should not be used here?

Greetings,
Dominik


More information about the Kde-windows mailing list