I'm having a problem to print a QTextDocument!!
When I set the "print to file" checkbox in QPrintDialog, no problem! The file is correctly saved in disk, but when I try print, this message appears in konsole:
QPainter::begin(): Returned false
This the method I'm using to print:
Code:
void Visualizador::imprimir(void){ defDocumento(); if(telaImprimir.exec()){ relatorio.print(&printer); } }
The var relatorio is a QTextDocument and the text was setted in defDocumento()!