Warning, /education/marble/examples/cpp/geopainter/Readme.txt is written in an unsupported language. File is not indexed.
0001 The online version of this example can be found at 0002 https://techbase.kde.org/Marble/MarbleGeoPainter 0003 0004 In the previous tutorial you've seen how easy it is to embed a MarbleWidget 0005 into a Qt application: Just create a MarbleWidget, set a map theme on it and 0006 ... you're done already. 0007 Next we'll extend that example a bit and write our own little paint method to 0008 add some extra content to the globe. To facilitate this, Marble provides a 0009 painting hook called MarbleWidget::customPaint. It is called in between of the 0010 normal paint operations: After the background and tiles are painted, but before 0011 the top layers like float items (info boxes). 0012 The customPaint operation is called with a GeoPainter: An extended QPainter 0013 which not only is able to paint at certain screen (pixel) positions, but also 0014 at certain geo (lat,lon) positions. We'll make use of that feature now. To keep 0015 things simple again, we just add a little 'Hello World' message indicated by a 0016 green circle. 0017