kkk777kkk
20th September 2011, 14:20
Hi, help me please with my problem: listed code from main.cpp work in strange case, if line "splash.show();" commented it work right, but if it is not commented QPringDialog window can't be closed it any way: all buttons responding on my clicks but nothing more not happened. Mac OS X 10.6.6 Qt 4.7.4
#include <QApplication>
#include <QPrintDialog>
#include <QPrinter>
#include <QSplashScreen>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplashScreen splash;
splash.show();
QPrinter printer(QPrinter::HighResolution);QPrintDialog dialog(&printer);dialog.exec();
return app.exec();
}
#include <QApplication>
#include <QPrintDialog>
#include <QPrinter>
#include <QSplashScreen>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplashScreen splash;
splash.show();
QPrinter printer(QPrinter::HighResolution);QPrintDialog dialog(&printer);dialog.exec();
return app.exec();
}