Qt Labs Forum » General discussions

How to get pixel color from QPainter ??

(1 post)
  • Started 3 months ago by rameshg87

  1. rameshg87
    rameshg87
    Member

    Hi,
    I need to get the color of the pixel that I drew with QPainter. I create a QWidget and wrote my own code for the paintEvent function after setting the widget to opaque mode using Qt::WA_OpaquePaintEvent. Now as I draw more and more pixel I need to get the color of one of the pixels that I drew earlier. Is there any function for it or is there any method by which I can do it ???

    Posted: 3 months #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.