Problem with QMessageBox and Windows 7
-
210/5000
ok, I installed QtCreator on a machine with Windows 7 64bit.
I run the program from QtCreator, and everything worked.
so the problem is that when I use a compiled binary for Windows 10?
possible? -
@fermatqt It should work fine on Windows 7.
"when I run this code in Windows 7, the program crashes" - what exactly happens? Any error message?@jsulm said in Problem with QMessageBox and Windows 7:
@fermatqt It should work fine on Windows 7.
"when I run this code in Windows 7, the program crashes" - what exactly happens? Any error message?the program closes, and it appears the windows error "Programs Has Stopped Working".
-
Hi,
How did you deploy the application ?
-
Which version of Qt ?
-
What compiler are you using ?
-
Since the 5.9 betas are available, can you check them to see if you still encounter that problem ?
-
Since the 5.9 betas are available, can you check them to see if you still encounter that problem ?
@SGaist said in Problem with QMessageBox and Windows 7:
Since the 5.9 betas are available, can you check them to see if you still encounter that problem ?
hi!
I also tried with Qt 5.9, but I have the same problem.
Even this code does not work:#ifndef SAVEDIALOG_H #define SAVEDIALOG_H #include <QObject> #include <QStringList> #include <QFileDialog> inline QString saveDialog() { QString fileName; QStringList filters; filters << "CSV(*.csv)" << "XLS(*.xls)" << "PDF(*.pdf)" << "All files(*.*)"; QFileDialog fd(0, QObject::tr("Salva"), QDir::homePath()); fd.setAcceptMode(QFileDialog::AcceptSave); fd.setNameFilters(filters); if (fd.exec() == QDialog::Accepted) { fileName = fd.selectedFiles()[0]; } return fileName; }