[Qt-interest] [Qt-Interest] Problem with QPrinter under X11 - maybe qt bug

Zeljko zeljko at holobit.net
Mon Oct 17 09:54:46 CEST 2011


Zeljko wrote:


> Yes, it's bug ... definitelly.
> 
> void MainWin::Izlaz() {
>   /* just for testing .. */
>   QPainter painter;
>   QPrinter printer(QPrinter::PrinterResolution);
>   QPrintDialog *dialog = new QPrintDialog(&printer, this);
>      dialog->setWindowTitle(tr("Print Document"));
>   if (dialog->exec() == QDialog::Accepted){
>     painter.begin(&printer);
>     painter.drawText(100, 100, QString("Hello world"));
>     painter.end();
>     /* Nothing helps ... orphans are in /proc/PROCNUM/fd/24 -> /tmp/cupsXXXXX
> (deleted) */
>     /* printer.abort(); */
>     /* printer.~QPrinter(); */
>   }
> }


I hate when such ugly bugs are opened for > 6 months.
https://bugreports.qt.nokia.com/browse/QTBUG-14724

And especially since there's merge request for about 10 months
http://qt.gitorious.org/qt/qt/merge_requests/982

And it's not merged just because commit message is not according to standards 
?!?

I can understand everything, but such things are really really ugly.

zeljko



More information about the Qt-interest-old mailing list