Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.8.3, 5.2.0, 5.9.4
-
None
-
{noformat}
qmake-qt4 --version
QMake version 2.01a
Using Qt version 4.8.3 in /usr/lib/i386-linux-gnu
Linux ubuntu 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 19:02:34 UTC 2013 i686 i686 i686 GNU/Linux
Ubuntu 12.10
kubuntu-desktop:
Installed: 1.263
Candidate: 1.263
Version table:
*** 1.263 0
500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
100 /var/lib/dpkg/status
libqt4-core:
Installed: (none)
Candidate: 4:4.8.3+dfsg-0ubuntu3.1
Version table:
4:4.8.3+dfsg-0ubuntu3.1 0
500 http://de.archive.ubuntu.com/ubuntu/ quantal-updates/universe i386 Packages
500 http://de.archive.ubuntu.com/ubuntu/ quantal-security/universe i386 Packages
4:4.8.3+dfsg-0ubuntu3 0
500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
libqt4-dev:
Installed: 4:4.8.3+dfsg-0ubuntu3.1
Candidate: 4:4.8.3+dfsg-0ubuntu3.1
Version table:
*** 4:4.8.3+dfsg-0ubuntu3.1 0
500 http://de.archive.ubuntu.com/ubuntu/ quantal-updates/main i386 Packages
500 http://de.archive.ubuntu.com/ubuntu/ quantal-security/main i386 Packages
100 /var/lib/dpkg/status
4:4.8.3+dfsg-0ubuntu3 0
500 http://de.archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
qtcreator:
Installed: 2.5.2-0ubuntu1
Candidate: 2.5.2-0ubuntu1
Version table:
*** 2.5.2-0ubuntu1 0
500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
100 /var/lib/dpkg/status
{noformat}
{noformat} qmake-qt4 --version QMake version 2.01a Using Qt version 4.8.3 in /usr/lib/i386-linux-gnu Linux ubuntu 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 19:02:34 UTC 2013 i686 i686 i686 GNU/Linux Ubuntu 12.10 kubuntu-desktop: Installed: 1.263 Candidate: 1.263 Version table: *** 1.263 0 500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages 100 /var/lib/dpkg/status libqt4-core: Installed: (none) Candidate: 4:4.8.3+dfsg-0ubuntu3.1 Version table: 4:4.8.3+dfsg-0ubuntu3.1 0 500 http://de.archive.ubuntu.com/ubuntu/ quantal-updates/universe i386 Packages 500 http://de.archive.ubuntu.com/ubuntu/ quantal-security/universe i386 Packages 4:4.8.3+dfsg-0ubuntu3 0 500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages libqt4-dev: Installed: 4:4.8.3+dfsg-0ubuntu3.1 Candidate: 4:4.8.3+dfsg-0ubuntu3.1 Version table: *** 4:4.8.3+dfsg-0ubuntu3.1 0 500 http://de.archive.ubuntu.com/ubuntu/ quantal-updates/main i386 Packages 500 http://de.archive.ubuntu.com/ubuntu/ quantal-security/main i386 Packages 100 /var/lib/dpkg/status 4:4.8.3+dfsg-0ubuntu3 0 500 http://de.archive.ubuntu.com/ubuntu/ quantal/main i386 Packages qtcreator: Installed: 2.5.2-0ubuntu1 Candidate: 2.5.2-0ubuntu1 Version table: *** 2.5.2-0ubuntu1 0 500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages 100 /var/lib/dpkg/status {noformat}
Description
I am using the static function QFileDialog::getSaveFileName in some places, but sometimes I need to construct the dialog myself and set the parameters one by one.
I noticed that QFileDialog::setDirectory() behaves in an unexpected manner.
Steps to reproduce:
- Call QFileDialog::getSaveFileName, with some path at least two directories deep.
- Observe the directory you are in. OK
- Construct a dialog and set the directory with setDirectory() to the same directory as in before
- Show the dialog.
- Observe the directory you are in. FAIL
Expected behavior:
Both methods start in the same directory
Actual behavior:
With setDirectory() you will start in the parent directory of the directory you wanted, with the actual directory selected.
Attached, screenshot of the incorrect behaviour. I tried to set the directory to /home/me/tmp
On Windows this works as expected.