I am using the QFileDialog::getOpenFileName
function to get a file to open. However, on a client's computer running Windows 7 this either displays a corrupted open file dialog as shown in the screenshot, or crashes the entire application.
The code I use to open the file dialog is:
void MainWindow::on_action_triggered() {
auto filename = QFileDialog::getSaveFileName(this, "Generate Report", "", "CSV files (*.csv)");
if (filename.isEmpty()) {
return;
}
// Do operations on filename...
}
I am using Qt 5.5 with Visual Studio 2013.