Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.4, 6.3, 6.4
-
debian/deepin
-
-
5e8b762756 (qt/qtdeclarative/dev) 5e8b762756 (qt/tqtc-qtdeclarative/dev) 24a31c9e50 (qt/qtdeclarative/6.3) 3986f32d70 (qt/qtdeclarative/6.4) 3986f32d70 (qt/tqtc-qtdeclarative/6.4) 97999876fb (qt/tqtc-qtdeclarative/6.2)
Description
The FolderDialog from Qt.labs.platform 1.1 has some exceptions when used on Linux. If I select a folder name in the folder dialog, make it appear in the line edit area of the dialog, and click the accept button, it returns the current folder with one more folder name. Select a folder name in the folder dialog box, and double-click to open it, the current folder it returns will also contain an additional folder name. For example: I choose "/home/user1", double-click to open, or click the accept button, the current folder it returns is "/home/user1/user1".
Please refer to the attached sample.
import QtQuick 2.9 import QtQuick.Window 2.2 import QtQuick.Controls 2.4 import Qt.labs.platform 1.0 Window { visible: true width: 640 height: 480 title: qsTr("folder dialog test") Button { text: "folder dialog" anchors.centerIn: parent onClicked: { folderDlg.open() } } FolderDialog { id: folderDlg onCurrentFolderChanged: { console.info("onCurrentFolderChanged: currentFolder: " + currentFolder) } onFolderChanged: { console.info("onFolderChanged: folder: " + folder + ", currentFolder: " + currentFolder) } } }