LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2005, 05:08 AM   #1
vratojr
LQ Newbie
 
Registered: Nov 2005
Location: La Spezia,Italy
Distribution: Mandrivia 10.2
Posts: 7

Rep: Reputation: 0
Qt Printing on .ps


Hello,I have some problems with Qt when I try to pring on a .ps file. I tryed two approachs but I had some little problems with both of them.

The first:
-I created a QPrinter and a QPainter on IT.
-I draw something on the printer and then I call end() on the painter.
-I call once more begin() on the painter to continue drawing and the problem is that the QPrinter starts drawing in another page... How can I avoid this?

The second:
To avoid the problem told before I:
-Created a QPainter on a QPixmap.
-Drawn my things on the pixmap.
-Created a QPainter on the QPrinter and drawn directly the QPixmap.
The problem with this method is that the quality of the resulting .ps file is worst (very) of the first method.

With both methods I used the same configuration for my QPrinter:
QPrinter *PSPrinter = new QPrinter(QPrinter::ScreenResolution);
PSPrinter->setOrientation(QPrinter::Landscape);
PSPrinter->setPageSize(QPrinter::A5);
PSPrinter->setFullPage(TRUE);
PSPrinter->setOutputFileName(saveFileName);

Suggestions?

Thanks!

Last edited by vratojr; 12-20-2005 at 05:13 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cups Printing problem, Linux to Linux Printing problem folken718 Slackware 2 11-08-2004 10:10 AM
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 06:13 AM
Help!!!!!printing!!!!!!! youssefe2k Linux - Software 3 04-29-2004 12:11 PM
printing sonia Linux - Newbie 1 09-04-2002 03:54 AM
printing help Xreagan Linux - Newbie 1 09-01-2002 03:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration