Results 1 to 1 of 1

Thread: QPrinter bug?

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

    Default QPrinter bug?

    Hi,

    I have a brush with custom QBitmap, as shown. Inverted scale was applied to the QBrush to remove scaling effect on the QBitmap.

    Qt Code:
    1. QTransform xf = painter->transform();
    2.  
    3. QTransform brushXF;
    4. brushXF.scale( 1 / xf.m11(), 1 / xf.m22() );
    5.  
    6. QBrush bs = brush();
    7. bs.setTransform( brushXF );
    8.  
    9. painter->setBrush( bs );
    To copy to clipboard, switch view to plain text mode 

    In screen, the graphics look fine, but when do QPrinter, the inverted scaling on QBrush was lost, see attachment. Do I do something wrong?
    Attached Images Attached Images

Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 09:03
  2. QPrinter for QTextEdit
    By sms in forum Qt Programming
    Replies: 0
    Last Post: 17th July 2008, 16:21
  3. QPrinter on QGraphicsScene Border Problem
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2007, 15:49
  4. QPrinter problems
    By Teuniz in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2007, 08:51
  5. How to use QPrinter without QPrintDialog?
    By pascal456 in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2006, 19:57

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.