Re: Painting on QML Element
If you want to do custom drawing on a QML element, you will need to ensure that your corresponding C++ class derives from QDeclarativeItem and override the virtual paint() method. http://get.qt.nokia.com/training/QtQ...ntegration.pdf has an exact code example for what you're looking for (in particular, check out slides 10-21 that show how to draw an Ellipse in your C++-based QML element).
Note that QDeclarativeItem will be replaced in Qt 5, so some porting effort will be required if you decide to migrate later.