03-22-2014 06:57 AM
Hello. Im developing an application which uses onTouch method to trace and get the co-ordinates of the touches. While the user is tracing on the screen, I want to display a colored trail of the trace so that the touch line is displayed. For that I have thought of using the paint module but unable to do so. I have even tried using Qt and QtWidgets but the QPainter class is not identifited in the cascades.
In case of any other way to use paint in the application, or displaying a trail of the touch please notify.
Solved! Go to Solution.
03-22-2014 05:50 PM
03-23-2014 05:06 AM
Is there a way to color the pixel or slightly increase the opacity of the pixels in order to show a trace ? if i simply want to change pixel's color in a particular container, is it possible ?
03-23-2014 06:08 PM
You say you tried QPainter but you could use this to individually change pixels within a background image.
Image also has a way to access pixels...
03-26-2014 12:47 AM
The other way maybe your can try the html wrapped in a webview to do the Painting.
Instead of using openGL to make your painting function work...
(Tha's how I did in my app, openGL is too hard for me, haha )
03-30-2014 03:46 AM
03-30-2014 11:14 AM
03-31-2014 04:15 AM
ohk i have resolved the touch paint problem. Is there any way to draw only on restricted area of the touch device. Suppose i want to trace on part of the screen, i have used onTouch and onTouchExit properties of the container in order to restrict the touch. Is there any way else so i can trace along the exact co-ordinates of the screen ?