Browse Source

xlsxwidget: Fix file path filter passed to QFileDialog

master
Debao Zhang 10 years ago
parent
commit
2ec1adc135
  1. 2
      examples/xlsx/xlsxwidget/main.cpp

2
examples/xlsx/xlsxwidget/main.cpp

@ -11,7 +11,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
//![0]
QString filePath = QFileDialog::getOpenFileName(0, "Open xlsx file", QString(), ".xlsx");
QString filePath = QFileDialog::getOpenFileName(0, "Open xlsx file", QString(), "*.xlsx");
if (filePath.isEmpty())
return -1;
//![0]

Loading…
Cancel
Save