You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, May 3rd 2012, 9:18am

Need help with QML/Qt app

Hi all,

I would like to thank everyone who reads this thread. First off I apologize if I have posted in the wrong section, I do think I'm in the correct area (Qt).

I'm currently working on making a Signature capturing add on to an already completed app.

I've started off the main program mostly on QML and not on Qt.
No experience in C++ so I'm pretty much stumped even by the examples.

I had a few ideas on how to start:
1) The Tablet example seems usable, however I'm not sure how to replace Tablet events with the touchscreen capturing instead. I've ran the Tablet example and it doesn't respond to the touchscreen.
2) Using QML/Rectangle/MouseArea to start a Timer as the user signs which saves the coordinates and which is then drawn by a QPainter. What the QPainter draws on, I have no idea, a QImage perhaps? And how I display the QImage concurrently with the user signing?

If this procedure of using QML to call QPainter is sound, how do I start? I need some help with the C++ portion of QPainter drawing and displaying even a simple line, like painter.drawLine(0,0,100,100).

I'm willing to learn with some simple guidance, do respond if you can help.

Used tags

qml, qt, Signature