Hi,
You can try to do something like
// Principal widget
void ChildWidget
::myFunc(QPainter* painter
) {
painter->begin(parentWidget());
// Drawing
painter->end();
}
// Principal widget
void ChildWidget::myFunc(QPainter* painter)
{
painter->begin(parentWidget());
// Drawing
painter->end();
}
To copy to clipboard, switch view to plain text mode
PS. If you use Qt 4.1 you can print to a PDF file directly using
printer.
setPrinterMode(QPrinter::HighResolution);
printer.
setOutputFormat(QPrinter::PdfFormat);
printer.setPrinterMode(QPrinter::HighResolution);
printer.setOutputFormat(QPrinter::PdfFormat);
To copy to clipboard, switch view to plain text mode
PPS. Sorry for my very bad English.
PPPS. For vratojr: I'm italian like you. If you like you can write me in private post in Italian
Bookmarks