Qt-interest Archive, May 2008
how can i change the color of the pixel cliked by mouse
Message 1 in thread
hi all
can any one suggest, how can i get
the color of the pixel clicked by mouse.
i m using qt4 in ubuntu linux.
thanks in advance
--
[ signature omitted ]
Message 2 in thread
"Bijay Panda" <bijay@xxxxxxxxxxxxxxxxxxx> wrote in message news:72cebdec0805210339p1b9d489aha9f4c9c81049b704@xxxxxxxxxxxxxxxxx
hi all
can any one suggest, how can i get
the color of the pixel clicked by mouse.
i m using qt4 in ubuntu linux.
thanks in advance
Hi,
Your message is a bit confusing: do you want to _get_ the color of the pixel (as in the body of your message), or do you want to _set_ that color?
What have you tried before? What did not work as you expected?
André
Message 3 in thread
>can any one suggest, how can i get
>the color of the pixel clicked by mouse.
>i m using qt4 in ubuntu linux.
Not that I'd done this but you
might try these:
QPixmap::grabWidget()
QPixmap::toImage()
QImage::pixel()
Regards,
Eero Taipale
--
[ signature omitted ]