Re: [Qt-creator] Printing directly to the printer instead of PDF or PS creation

2010-07-01 Thread Christophe Meessen
Le 30/06/2010 17:05, Andre Poenitz a écrit :
> On Tue, Jun 29, 2010 at 04:22:05PM +0200, Christophe Meessen wrote:
>
>> [...]
>>
>> I checked the QtCreator binary is static (ldd ./qtcreator), so
>> libraries doesn't come into play here.
>>  
> Could this be a shell script?
>

Ehem, yes indeed. Sorry. I didn't check that.
Checking ldd /opt/qt/bin/qtcreator.bin I see that it uses the qt 
libraries of the latest downloaded qt binary package freshly reinstalled 
yesterday.

As suggested, I tested an example. The TextEdit example's Print dialog 
also doesn't show printers.

How is the print dialog expected to find the printers ? Does it uses cups ?
I have no local printers. I use printers made available through a CUPS 
server.
And gnome applications do show the list of printers.

In /etc/cups/client.conf I have
ServerName ***.***.fr



___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Printing directly to the printer instead of PDF or PS creation

2010-06-30 Thread Charles N Burns
While this shouldn't be the case, is it possible that Qt Creator is asking
KDEPrint for printer information and that, as a Gnome user, printers are
configured only in Gnome but not in KDE (even though Qt Creator is not
technically a KDE application)?
Not likely, but perhaps worth a look.
One way to test is to try to print from another Qt (or KDE?) application.

Best regards,

--Charles Burns

On Tue, Jun 29, 2010 at 8:22 AM, Christophe Meessen
wrote:

>  Le 29/06/2010 14:43, Tobias Hunger a écrit :
>
> On 29.06.2010 14:28, ext Christophe Meessen wrote:
>
>
>  Is there a way to configure QtCreator to print directly to a printer ? A
> binding with CUPS would be preferable.
>
>
>  All configured printers should show up in creator's print dialog. We
> just tested this on ubuntu 10.04 and it does work here.
>
> Do other (Qt?) applications show the list of printers?
>
>
>
> Other desktop applications do show the printer list without problem (I'm
> running Gnome). But not QtCreator.
> This Ubuntu 10.04 installation is an upgrade and not a fresh install.
>
> Apparently I had Qt 4.6.2 installed through synaptic. I didn't uninstalled
> it. It is split in many packages and I don't know which one to remove.
>
> I then have downloaded the Qt 4.7 with QtCreator 2.0 and run it as root to
> have it installed in /opt. I then added a soft link qt to point to this
> directory.
>
> I then added the path to the Qt 4.7 libraries using the commands
> > sudo -s
> > echo "/opt/qt/lib" > /etc/ld.so.conf.d/qtlibs.conf
> > ldconfig -v
>
> ldconfig -v shows the Qt 4.7 library and the 4.6.2 too.
>
> I checked the QtCreator binary is static (ldd ./qtcreator), so libraries
> doesn't come into play here.
>
> What I see is this :
>
>
>
> As name the only options are PDF or Postscript into a file. No buttons give
> access to a list of printers. I couldn't find anything in the progam
> options.
>
> Another information is that the CUPS printers are not local, but managed by
> a server.
>
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>


-- 
"Be kind, for everyone you meet is fighting a hard battle." --Plato
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Printing directly to the printer instead of PDF or PS creation

2010-06-30 Thread Andre Poenitz
On Tue, Jun 29, 2010 at 04:22:05PM +0200, Christophe Meessen wrote:
> [...]
> 
> I checked the QtCreator binary is static (ldd ./qtcreator), so
> libraries doesn't come into play here.

Could this be a shell script?

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Printing directly to the printer instead of PDF or PS creation

2010-06-29 Thread Christophe Meessen




Le 29/06/2010 14:43, Tobias Hunger a écrit :

  On 29.06.2010 14:28, ext Christophe Meessen wrote:
  
  
Is there a way to configure QtCreator to print directly to a printer ? A
binding with CUPS would be preferable.

  
  All configured printers should show up in creator's print dialog. We 
just tested this on ubuntu 10.04 and it does work here.

Do other (Qt?) applications show the list of printers?
  


Other desktop applications do show the printer list without problem
(I'm running Gnome). But not QtCreator. 
This Ubuntu 10.04 installation is an upgrade and not a fresh install. 

Apparently I had Qt 4.6.2 installed through synaptic. I didn't
uninstalled it. It is split in many packages and I don't know which one
to remove. 

I then have downloaded the Qt 4.7 with QtCreator 2.0 and run it as root
to have it installed in /opt. I then added a soft link qt to point to
this directory. 

I then added the path to the Qt 4.7 libraries using the commands
> sudo -s
> echo "/opt/qt/lib" > /etc/ld.so.conf.d/qtlibs.conf
> ldconfig -v

ldconfig -v shows the Qt 4.7 library and the 4.6.2 too. 

I checked the QtCreator binary is static (ldd ./qtcreator), so
libraries doesn't come into play here. 

What I see is this :



As name the only options are PDF or Postscript into a file. No buttons
give access to a list of printers. I couldn't find anything in the
progam options. 

Another information is that the CUPS printers are not local, but
managed by a server. 




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Printing directly to the printer instead of PDF or PS creation

2010-06-29 Thread Tobias Hunger
On 29.06.2010 14:28, ext Christophe Meessen wrote:
> Is there a way to configure QtCreator to print directly to a printer ? A
> binding with CUPS would be preferable.

Hi Christophe!

All configured printers should show up in creator's print dialog. We 
just tested this on ubuntu 10.04 and it does work here.

Do other (Qt?) applications show the list of printers?

Best Regards,
Tobias

-- 
Tobias Hunger
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Printing directly to the printer instead of PDF or PS creation

2010-06-29 Thread Christophe Meessen
Hello,

I'm on Ubuntu 10.4 and installed the latest SDK with QtCreator 2.0. I 
have many source files to print and hoped to find a better method than 
the pdf file generation to print a source file. I have many pages to 
print and the pdf file is laborious, though I like the output format.

Is there a way to configure QtCreator to print directly to a printer ? A 
binding with CUPS would be preferable.

--
Ch. Meessen

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator