|
|
2011-01-02
, 02:39
|
|
Posts: 4 |
Thanked: 0 times |
Joined on Aug 2010
|
#2
|
|
|
2011-01-06
, 19:45
|
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#3
|
It closes the moment I click on a file, thus preventing me from selecting multiple files. It pretty much behaves the same way as QFileDialog::getOpenFileName (no s at the end). There's no context menu if you click-hold or any other menu in the dialog itself.
I first noticed this with PyQt, then tried it with PySide, where it also misbehaved. Finally decided to try it in c++ and that didn't work either.
It behaves correctly in the Qt Simulator on Windows, where it allows you to mark multiple files by holding down the Ctrl key of the keyboard.
What kinda worked is the following
QFileDialog * fd = new QFileDialog(this);
fd->setAcceptMode(QFileDialog::AcceptOpen);
fd->setFileMode(QFileDialog::ExistingFiles);
fd->exec();
This however opens up a very ugly dialog and inconvinient as well (btw the simulator uses the same but not as ugly).
The procedure for selecting multiple files is as follows:
-click-hold and drag the file a little bit(just a little, we don't want to move it) then release.
-Press Ctrl button on the N900 keyboard,
-then click-hold and drag a little another file and so on.
If you just click twithout dragging the dialog closes immediately.
Sooo,
who's gonna propose a solution where I don't have to reimplement everything myself.
Greetings
PS: the ugly dialog I am talking about is the one that has an open button, a File-Name text field, Files-of-type field, some folder browser on the left, a look-in field, some naviagtion buttons and view options and one-line-space(left) to display the actual content ...