Results 1 to 2 of 2

Thread: Needed, another RenderHint for QPainter

  1. #1
    Join Date
    May 2010
    Posts
    30
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Cool Needed, another RenderHint for QPainter

    Hey All,

    I have a QGraphicsView holding a QGraphicsScene containing several sub-classed QGraphicsItems. I need to change the way it is rendered (similar to Smoothing which is handled by the QPainter natively) and have the algorithm for what needs to happen, given a source image, at any zoom level. Because my algorithm is zoom-dependent, I cannot just change the source image, but need to change the way it is rendered. Any hints as to where the actual rendering happens, what I could sub-class to take advantage of it, or general insights into the Graphics Framework would be appreciated.

    Thanks

  2. #2
    Join Date
    Jul 2010
    Posts
    53
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Needed, another RenderHint for QPainter

    QGraphicsScene containing several sub-classed QGraphicsItems
    inside each QGraphicsItem subclassed's paint(...); methods.

    you do not need change image size, just give desired rect size for this QPaineter's method which draws image;

Similar Threads

  1. QPainter(&QPrinter) & QPainter(&QImage) communication
    By gufeatza in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2010, 07:25
  2. Replies: 5
    Last Post: 7th September 2009, 20:57
  3. QPainter::save and QPAinter::restore()
    By quickNitin in forum Newbie
    Replies: 2
    Last Post: 17th June 2006, 22:11
  4. Replies: 3
    Last Post: 30th April 2006, 19:22
  5. help needed regarding QWT
    By skatakam in forum Qwt
    Replies: 1
    Last Post: 21st March 2006, 12:47

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.