<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">On Tuesday 10 February 2009 23:17:05 James Richard Tyrer wrote:<br>
> IAC, we seem to have wandered off of the issue.  My printer prints fine<br>
> form Okular-0.8 in KDE-4.2 -- the problem is not with the printer<br>
> driver.  The problem is that printing doesn't work with KWrite.  I click<br>
> "Print" and nothing happens -- I don't even see an error message.  I<br>
> hacked the code and it works fine.  The problem is that I hacked the<br>
> KATE code, could find no library to hack, and that probably means that<br>
> other apps won't work either.  I tried Konqueror and it wouldn't print a<br>
> web page.<br>
><br>
> It has been suggested to me that this is a Qt bug.  So, I updated<br>
> Qt-COPY and am trying to build TRUNK against it.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Apologies, I've been away and am just catching up.  I haven't read the bug report yet,  but I can confirm that Qt does support printing through lpr, it falls back to lp support if CUPS is not installed.  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>You say you can print through Okular, which suggests to me your printer appears in the Qt print dialog?  Same as it does in Kwrite and the other apps?  So it seems Qt is talking to lp ok to find out the installed printers.  So that suggests that there is a bug with Qt actually subbing the print file to lpr.  So this should be reported to Qt.  Don't be too surprised if the issue isn't fixed in Qt 4.5, lpr support probably doesn't get as extensive testing now virtually every disto and *nix varient ships with CUPS.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>The reason Okular works when the others don't is that in order to print high quality PDF files we use the Qt print dialog but bypass using Qt to sub the print file to lpr/CUPS and do it ourselves.  We can't do this for all of KDE as it is not cross-platform, with Qt we get Win and Mac support for free.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>John.</p></body></html>