Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QPrintDialog::exec returns QDialog::Rejected immediatly in Windows, not in Lubuntu
richelbilderbeek last edited by
I wrote a simple example program for QPrinterDialog:
const boost::shared_ptr<QPrintDialog> print_dialog(
if (print_dialog->exec() != QDialog::Accepted)
Under the Linux distribution Lubuntu this works as expected. When crosscompiling the code with MXE to Windows, QPrintDialog::exec returns QDialog::Rejected immediatly when running it with Wine.
- Who has an idea what causes QPrintDialog::exec to return QDialog::Rejected immediatly?
- Is the problem in (a) Qt5 (b) the MXE crosscompiling environment (c) Wine. If (b) or (c), sorry for posting at the wrong forum :)
Linux distribution: Lubuntu 13.04 (raring)
IDE: Qt Creator 2.7.0
C++ standard: C++98
Compiler (Lubuntu): G++ 4.7.3
Compiler (MXE): G++ 4.8.1
Libraries used (Lubuntu): Qt: version 5.0.1 (32 bit)
Libraries used (MXE): Qt: version 5.0.1 (32 bit)
Full code and project download at http://richelbilderbeek.nl/CppQPrintDialogExample1.htm . I would be curious if the code would work well under native Windows...