Results 1 to 2 of 2

Thread: QPainterPath and scale()

  1. #1
    Join Date
    Jul 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QPainterPath and scale()

    hi,

    I found that when I draw a QPainterPath into QGraphicsScene with specific width in QPen, the path width will altered by calling scale(), but the width will be leave untouched if width is 1.

    Is there any possible solution about a thick QPainterPath without adjustment by calling scale() ?

    thanks.

  2. #2
    Join Date
    Jul 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QPainterPath and scale()

    I found QPen::setCosmetic(true) will solve this issue.

Similar Threads

  1. QPainterPath and QPolygon
    By Muz in forum Qt Programming
    Replies: 0
    Last Post: 18th September 2009, 07:16
  2. Reusing a QPainterPath
    By Micawber in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 19:49
  3. QPainter ,QPainterPath...and cubicTo()
    By salmanmanekia in forum Qt Programming
    Replies: 1
    Last Post: 30th June 2008, 13:42
  4. QPainterPath.arcTo
    By grellsworth in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2008, 17:36
  5. QPainterPath outlining
    By viridis in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2008, 19:32

Tags for this Thread

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.