<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>162793</bug_id>
          
          <creation_ts>2008-05-29 09:53:58 +0000</creation_ts>
          <short_desc>Qt handles real printers as local file</short_desc>
          <delta_ts>2008-09-06 21:48:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>qt</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frederik V">frederikwebkommail</reporter>
          <assigned_to name="Thomas Zander">zander</assigned_to>
          <cc>a.m.p.boelens</cc>
    
    <cc>christophe</cc>
    
    <cc>danyelmo</cc>
    
    <cc>faure</cc>
    
    <cc>felix</cc>
    
    <cc>gerhard.riener</cc>
    
    <cc>luke-jr+kdebugs</cc>
    
    <cc>michal</cc>
    
    <cc>pino</cc>
    
    <cc>rdieter</cc>
    
    <cc>rideau3</cc>
    
    <cc>s.kdebugs</cc>
    
    <cc>xenoterracide</cc>
    
    <cc>zander</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>100</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>604965</commentid>
    <comment_count>0</comment_count>
    <who name="Frederik V">frederikwebkommail</who>
    <bug_when>2008-05-29 09:53:59 +0000</bug_when>
    <thetext>Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

See https://bugs.launchpad.net/ubuntu/+source/kdegraphics-kde4/+bug/234558

Okular on arch from KDEmod (Okular v0.6.80, Kde 4.0.80) lists the two printers at the end of the printer list as local file. They have a proper name, but printing results in printing to a pdf or postscript file (the file turns up) and not to the printer. There is no way to specify where the file should be.

Konqueror from the same KDE version lists all the three printers correctly and then separate entries for printing to pdf and ps.

Probably it&apos;s just the list that is wrong (not listing the pdf and ps options last), and the file entry field that is missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604971</commentid>
    <comment_count>1</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-05-29 10:42:35 +0000</bug_when>
    <thetext>This is indeed a Qt problem.

The bug is basically triggered by the fact Okular disables the QAbstractPrintDialog::PrintToFile option when printing using backends that don&apos;t support the printing to file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605153</commentid>
    <comment_count>2</comment_count>
    <who name="John Layt">jlayt</who>
    <bug_when>2008-05-29 23:29:22 +0000</bug_when>
    <thetext>I&apos;m seeing a similar issue on OpenSuse 11 beta 3+ with Qt 4.4.0. It appears to me to be a Qt bug, I plan to confirm, patch, and file a bug report this weekend.

What I&apos;m seeing is in all apps, even native Qt ones, that when QPrintDialog is displayed that while the first printer/item is selected/displayed in the combo box, the rest of the dialog is set up for the last printer/item, i.e. for the &quot;Print To Postscript&quot; printer, with the filename edit widget enabled.  Clicking OK tries to print to ps file.  Changing to another printer in the combo box fixes the problem.  

With Okular disabling the Print to File options, it half sets the dialog up for the Print To Postscript (so some QList&lt;QPrinterInfo&gt; iterator somewhere not getting reset after populating the combo?) but with the filename edit widget disabled, and printing fails.  If you only have one printer installed you can&apos;t switch printers to fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605165</commentid>
    <comment_count>3</comment_count>
    <who name="John Layt">jlayt</who>
    <bug_when>2008-05-30 00:17:30 +0000</bug_when>
    <thetext>Playing a little more, if I have 3 printers installed in Cups, everything works OK, which reminds me of some code I saw in QPrintDialog that does a -2 on the number of printers in the combo, I suspect it doesn&apos;t check if the Print To File options have been disabled.  I&apos;ll chase that down this weekend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605172</commentid>
    <comment_count>4</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-05-30 00:51:48 +0000</bug_when>
    <thetext>I was able to create a very small Qt testcase, and sent it to qt-bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605228</commentid>
    <comment_count>5</comment_count>
    <who name="Frederik V">frederikwebkommail</who>
    <bug_when>2008-05-30 09:25:02 +0000</bug_when>
    <thetext>I don&apos;t see any differences when changing the printers with 3 printers installed (on kdemod/arch). The first of the 3 printers works, but the others are print to file anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608252</commentid>
    <comment_count>6</comment_count>
    <who name="Luciano Leveroni">kleverness</who>
    <bug_when>2008-06-06 20:32:08 +0000</bug_when>
    <thetext>I&apos;ve the exactly the same experience as described by John Layt, so this is preventing me for using Okular to print documents :(

Hope this get fixed for the next bugfix qt 4.4 release :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613175</commentid>
    <comment_count>7</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-06-18 11:06:17 +0000</bug_when>
    <thetext>http://trolltech.com/developer/task-tracker/index_html?method=entry&amp;id=214505</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613178</commentid>
    <comment_count>8</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-06-18 11:06:58 +0000</bug_when>
    <thetext>*** Bug 164363 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613478</commentid>
    <comment_count>9</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-06-19 11:01:03 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614870</commentid>
    <comment_count>10</comment_count>
    <who name="Christophe Marin">christophe</who>
    <bug_when>2008-06-23 21:09:11 +0000</bug_when>
    <thetext>*** Bug 164778 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615151</commentid>
    <comment_count>11</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-06-24 17:18:05 +0000</bug_when>
    <thetext>*** Bug 164835 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>616974</commentid>
    <comment_count>12</comment_count>
    <who name="Ferdinand Gassauer">gassauer</who>
    <bug_when>2008-06-28 08:06:22 +0000</bug_when>
    <thetext>So I hope KDE 4.1 will be based on QT 4.5 as this bug is a blocker for commercial environments </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617005</commentid>
    <comment_count>13</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-06-28 10:52:29 +0000</bug_when>
    <thetext>&gt; So I hope KDE 4.1 will be based on QT 4.5 as this bug is a blocker for commercial environments

Ahahaha. Nice try.
Qt 4.4 was released no more than 2 months ago, so you won&apos;t see Qt 4.5 before other 6 months.
Oh, and changing priority for Qt bugs (especially when I asked for a quicker resolution of them) has no usefulness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617279</commentid>
    <comment_count>14</comment_count>
    <who name="Felix Möller">felix</who>
    <bug_when>2008-06-28 21:00:27 +0000</bug_when>
    <thetext>i have kpdf installed for printing :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617329</commentid>
    <comment_count>15</comment_count>
    <who name="Luciano Leveroni">kleverness</who>
    <bug_when>2008-06-28 23:29:14 +0000</bug_when>
    <thetext>This bug force me to install Adobe Reader just to print! No print support in a PDF Viewer is CRITICAL. The fix does not seem to be complex at all, please fix this for 4.4.1.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>617500</commentid>
    <comment_count>16</comment_count>
    <who name="Michal Borek">michal</who>
    <bug_when>2008-06-29 11:13:44 +0000</bug_when>
    <thetext>Luciano, I had to do the same step, even though I like Okular.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621685</commentid>
    <comment_count>17</comment_count>
    <who name="Roman K.">roman.karlstetter</who>
    <bug_when>2008-07-07 19:02:55 +0000</bug_when>
    <thetext>I can confirm this. I also installed adobe reader just to print pdf-files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623103</commentid>
    <comment_count>18</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-07-10 17:45:31 +0000</bug_when>
    <thetext>*** Bug 166240 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623609</commentid>
    <comment_count>19</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2008-07-12 01:21:39 +0000</bug_when>
    <thetext>Fixed by qt-copy patch 0237, the fix will be in Qt-4.4.1 too.
Meanwhile I suggest patching your Qt with qt-copy/patches/0237-printdialog-assert.diff  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624156</commentid>
    <comment_count>20</comment_count>
    <who name="Alexander Minges">alexander.minges</who>
    <bug_when>2008-07-13 16:07:58 +0000</bug_when>
    <thetext>Doesn&apos;t work here. The printer is shown correctly now, but it still doesn&apos;t print (printer is configured correctly, as I can print from Konqueror).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624247</commentid>
    <comment_count>21</comment_count>
    <who name="Frederik V">frederikwebkommail</who>
    <bug_when>2008-07-13 21:07:43 +0000</bug_when>
    <thetext>Here too, and the pdf&apos;s are still appearing in my home folder. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>626066</commentid>
    <comment_count>22</comment_count>
    <who name="Thomas Zander">zander</who>
    <bug_when>2008-07-17 18:28:14 +0000</bug_when>
    <thetext>Fixed upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>627578</commentid>
    <comment_count>23</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2008-07-21 18:12:46 +0000</bug_when>
    <thetext>Thomas: does &quot;fixed upstream&quot; mean that you improved the code after patch 0237, given that people report it doesn&apos;t work with just that patch?
In that case, could you send me the second patch, so that we can have it in qt-copy? A fix in Qt&apos;s source code for the next release isn&apos;t enough for such a critical bug, we need to patch qt-copy asap to check that everything works now.
Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>628109</commentid>
    <comment_count>24</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2008-07-22 20:46:47 +0000</bug_when>
    <thetext>SVN commit 836672 by dfaure:

Patch by Thomas Zander to fix &quot;[Bug 162793] Qt handles real printers as local file&quot;.
CCBUG: 162793
CCMAIL: kde-packager@kde.org


 M  +1 -2      patches/0237-printdialog-assert.diff  
 A             patches/0240-printdialog-print-into-real-printer.diff  
 M  +1 -1      patches/README  
 M  +6 -3      src/gui/dialogs/qprintdialog_unix.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=836672
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633818</commentid>
    <comment_count>25</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-08-04 23:40:49 +0000</bug_when>
    <thetext>*** Bug 168370 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637282</commentid>
    <comment_count>26</comment_count>
    <who name="Luke-Jr">luke-jr+kdebugs</who>
    <bug_when>2008-08-14 08:20:33 +0000</bug_when>
    <thetext>Why should printing to a file ever be unavailable anyway? The only &quot;reason&quot; I can see is DRM... :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644205</commentid>
    <comment_count>27</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-09-06 21:48:25 +0000</bug_when>
    <thetext>*** Bug 170555 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>