Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.5.1
-
None
Description
The selectedFiles function does not contain the actual selected files called from a slot connected to currentChanged.
#include <QtGui>
class Dialog : public QFileDialog
{
Q_OBJECT
public:
Dialog() : QFileDialog()
public slots:
void theSelectionHasChanged(const QString &path)
};
#include "main.moc"
int main(int argc, char** argv) {
QApplication app(argc, argv);
Dialog d;
d.show();
return app.exec();
}
In the example above, if you select a few files and then ctrl click another file (adding to the existing list) the selectedFiles function will print a list of the files that were already selected but not the most recently selected file.