Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Aug 2010
#1
For some reason on N900 with Maemo QFileDialog::getOpenFileNames does not work correctly.
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 ...
 
Posts: 4 | Thanked: 0 times | Joined on Aug 2010
#2
really? So nobody has ever needed to open more than 1 file at a time in a Qt application?
Or I guess noone has found a solution for that.
too bad ...
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#3
No solution ... it s like for having file extensions displayed.

The only way is to reconstruct the dialog yourself
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:38.