36 # include <QApplication> 38 # include <QFileDialog> 39 # include <QStringList> 45 TList *QtMultiFileDialog(
const char *
style=
"") {
47 QStyle *saveStyle = 0;
48 if (!QString(
style).isEmpty()) {
50 QApplication::setStyle(
style);
53 QStringList files = QFileDialog::getOpenFileNames ();
54 QStringList::Iterator it = files.begin();
55 while ( it != files.end() ) {
56 std::string flnm = (*it).toStdString();
57 printf (
"Next file selected: %s\n", flnm.c_str() );
63 if (saveStyle) QApplication::setStyle(saveStyle);
64 printf (
"\nThe TList of the file names contains:");
65 printf (
"\n-------------------------------------\n");
Collectable string class.
virtual void ls(Option_t *option="") const
List (ls) all objects in this collection.
virtual void Add(TObject *obj)