PDA

View Full Version : QPrintDialog problem



gesslar
16th February 2006, 02:38
I have this problem in QPrintDialog. The exec() function isn't working.



void EditorWin::doPrint() {
#ifndef QT_NO_PRINTER
QPrinter *printer = new QPrinter(QPrinter::HighResolution);
printer->setFullPage(true);
QPrintDialog *printDialog = new QPrintDialog(printer, this);
printDialog->exec();
if (printDialog->exec() == QDialog::Accepted) {
curTab()->document()->print(printer);
}
#endif
}


:confused: I know that it gets into the function because to test, I put in a qApp->aboutQt() and it did pop up. It is behaving as "QDialog::Rejected".
I would really appreciate the help if someone could offer it.

QT 4.1.0
Win32

gesslar
16th February 2006, 05:27
hmm, i think that this was a problem on the other computer i was using. never mind! sorry!