Results 1 to 1 of 1

Thread: Problem with SVG output

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

    Default Problem with SVG output

    Hi,

    I am trying to save QGraphicsScene to an SVG file, but there is a problem on the line thickness.

    In all QGraphicsItem:: paint method, I apply a scaling QTransform to the QPainter as:

    Qt Code:
    1. MyItem::paint( QPainter* painter, ...)
    2. {
    3. QTransform xf;
    4. xf.scale( 20, 20 );
    5. painter->setTransform( xf, true ); // combine with existing transform insider painter
    6. }
    To copy to clipboard, switch view to plain text mode 

    This external transform seems to case the QPen's width to be scaled, even though my QPen has width 0 (zero) with setCosmetic( true ) used.

    see the screen dump. Any input is appreciated!
    Attached Images Attached Images

Similar Threads

  1. Can't get QProcess output
    By croscato in forum Qt Programming
    Replies: 6
    Last Post: 18th November 2010, 15:56
  2. Problem with QProcess and output
    By mmm286 in forum Qt Programming
    Replies: 0
    Last Post: 3rd November 2009, 16:42
  3. QProcess problem: compile well but output error
    By jx324 in forum Qt Programming
    Replies: 3
    Last Post: 2nd March 2008, 07:39
  4. Output problem
    By aegis in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2007, 19:32
  5. output UTF?
    By mikro in forum Newbie
    Replies: 4
    Last Post: 18th May 2006, 23:00

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.