[Qgis-developer] Information about Progress in diagram branch

Martin Dobias wonder.sk at gmail.com
Tue Feb 20 08:57:37 EST 2007


On 2/19/07, Marco Hugentobler <marco.hugentobler at karto.baug.ethz.ch> wrote:
> > Do you draw the vector overlay directly to the rendered map or do you
> > use map canvas items?
>
> At the moment, the objects are directly drawn on map using
> QPainter::drawImage. Though canvas items may be better for collision
> detection and manually move items around. I'm not experienced with canvas
> item, so I'm wondering if the layer order is maintained if feature geometries
> are drawn on the map, then overlay objects as map canvas items and then again
> feature geometries.

My plan is to allow labels (and possibly other objects like the
diagrams) to be moved by user, so adding support to draw objects as
canvas items at later time would be good. Canvas (graphics view)
maintains Z-value for every item so items have always correct order.

Martin



More information about the Qgis-developer mailing list