Results 1 to 2 of 2

Thread: keep the pen width constant, independant of the QPainter world matrix ?

  1. #1
    Join Date
    Dec 2008
    Posts
    16
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default keep the pen width constant, independant of the QPainter world matrix ?

    I encountered a situation where scaling of on object should not affect its pen. It hides a lot of the object then.

    Is there a generic way to keep the pen constant, in other words, independant of the QPainter worldmatrix() ?

    Thanks !
    Mu

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

    Default Re: keep the pen width constant, independant of the QPainter world matrix ?

    Quote Originally Posted by muenalan View Post
    I encountered a situation where scaling of on object should not affect its pen. It hides a lot of the object then.

    Is there a generic way to keep the pen constant, in other words, independant of the QPainter worldmatrix() ?

    Thanks !
    Mu
    I just had the same problem and found this: QPen::setCosmetic( true )

  3. The following user says thank you to lni for this useful post:

    muenalan (28th January 2009)

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.