Results 1 to 7 of 7

Thread: QPainter bug or QPrinter bug?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QPainter bug or QPrinter bug?

    I think the general problem is that you don't into account that the screen and the pdf have different resolutions. I've been printing using Qt's PDF generator and I can assure you it works just fine.

    As for the image, I'd say the Mono format gets stored as an image that doesn't support transparency (JPG maybe?) or it gets converted to such a format. Just to be sure it's not the problem with the pdf renderer in kpdf, check the file with some other viewer (okular or acroread).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    faldzip (30th March 2009)

  3. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QPainter bug or QPrinter bug?

    I have been trying in many different machines with different kernels. In Windows, I tried CutePDF writer (http://www.cutepdf.com/), as well as Adobe's pdf writer. In linux, I have tested on Fedora core 4 and core 10, as well as enterprise Linux 4.0. For pdf viewer, I have tried acrobat in windows. In Linux, I tried kpdf, evince, and okular. All of them give the same error result.

    However, if I switch to QImage::Format_Indexed8, it works fine. But QImage::Format_Indexed8 is really a waste of resources. All I need is two colors in the image...

    I don't know why the font is distorted by painter...

    I just reported this bug to Cattell a few weeks ago:
    http://www.qtsoftware.com/developer/...9&method=entry

Similar Threads

  1. QPrinter, QPainter, and Large Amounts of Data
    By millsks in forum Qt Programming
    Replies: 0
    Last Post: 17th March 2009, 18:26
  2. Replies: 5
    Last Post: 15th January 2009, 09:03
  3. QPrinter problems
    By Teuniz in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2007, 08:51
  4. QPainter & QPrinter on linux (fedora 7)
    By wbt_ph in forum Qt Programming
    Replies: 4
    Last Post: 20th October 2007, 15:37
  5. QPainter & QPrinter
    By munna in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2006, 14:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.