var prnt = new QPrinter( QPrinter.HighResolution );
var pa = new QPainter;
var dialog = new QPrintDialog( prnt );
if ( dialog.exec() == QDialog.Accepted ) {
...
...
...
}
The dialog is shown, but when accepted or canceled the code doesn't execute
further.
WinXP, Qt 4.4 and 4.5, generator 0.1 (29th october 2009) and earlier
I found out QDialog::exec() is called instead of QPrintDialog::exec().
A workaround is changing qtscriptshell_QPrintDialog.h: add Q_OBJECT macro
and make int exec() a public slot (I attached the modified file).
Original issue reported on code.google.com by miha.d....@gmail.com on 30 Oct 2009 at 1:57
Original issue reported on code.google.com by
miha.d....@gmail.com
on 30 Oct 2009 at 1:57Attachments: