Ok, I got know there is a problem
in this code
printer.setOutputToFile ( FALSE );
printer.setOutputToFile ( FALSE );
To copy to clipboard, switch view to plain text mode
Once commented, the control goes to this
if ( printer.setup( this ) )
if ( printer.setup( this ) )
To copy to clipboard, switch view to plain text mode
Finally to this function..
{
return qt_compat_QPrinter_printSetup(this, d, parent)
#ifdef Q_WS_MAC
&& qt_compat_QPrinter_pageSetup(this, parent);
#endif
;
}
bool QPrinter::setup(QWidget *parent)
{
Q_D(QPrinter);
return qt_compat_QPrinter_printSetup(this, d, parent)
#ifdef Q_WS_MAC
&& qt_compat_QPrinter_pageSetup(this, parent);
#endif
;
}
To copy to clipboard, switch view to plain text mode
The application crashes. Any idea
Ok one more thing, I get this warning
QPrintDialog, Only native format supported. What to do???
-->Edit-->
Ok I have changed the code from
if (printer->setup(parent))
...
you can rewrite it as
if (dialog.exec())
if (printer->setup(parent))
...
you can rewrite it as
QPrintDialog dialog(printer, parent);
if (dialog.exec())
To copy to clipboard, switch view to plain text mode
Still there is crashing, I still get
QPrintDialog, Only native format supported,
In
int QPrintDialog::exec() function "ep" which is "QWin32PrintEnginePrivate *ep;" is 0. Any idea???
Bookmarks