QString filename=QFileDialog::getOpenFileName(this, tr("Open file"), "C://", "Picture file (*.jpg)"); QMessageBox::information(this, tr("File name"), filename);
QString filename=QFileDialog::getOpenFileNames(QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0);
QString filename=QFileDialog::getOpenFileNames(QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, QFileDialog::Option options = 0);
QStringList filename=QFileDialog::getOpenFileNames(this, tr("Open file"), "C://", "Picture file (*.jpg)"); qDebug() << filename;
C:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:43: error: no matching function for call to 'QMessageBox::information(ramki4_0* const, QString, QStringList&)'C:\Qt\4.8.5\src\gui\dialogs\qmessagebox.h:191: candidates are: static QMessageBox::StandardButton QMessageBox::information(QWidget*, const QString&, const QString&, QFlags<QMessageBox::StandardButton>, QMessageBox::StandardButton)C:\Qt\4.8.5\src\gui\dialogs\qmessagebox.h:217: note: static int QMessageBox::information(QWidget*, const QString&, const QString&, int, int, int)C:\Qt\4.8.5\src\gui\dialogs\qmessagebox.h:220: note: static int QMessageBox::information(QWidget*, const QString&, const QString&, const QString&, const QString&, const QString&, int, int)C:\Qt\4.8.5\src\gui\dialogs\qmessagebox.h:227: note: static QMessageBox::StandardButton QMessageBox::information(QWidget*, const QString&, const QString&, QMessageBox::StandardButton, QMessageBox::StandardButton)
C:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: expected primary-expression before '*' tokenC:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: expected primary-expression before 'const'C:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: expected primary-expression before 'const'C:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: expected primary-expression before 'const'C:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: expected primary-expression before '*' tokenC:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: 'selectedFilter' was not declared in this scopeC:\Users\dmitry.rikhter\ramki4_0\ramki4_0.cpp:38: error: expected primary-expression before 'options'