I want to mark a point in map and place text near it. I used QgsVertexMarker to mark point .As far as now i am using tool-tip to show text. but i need clean code to show my text on map.
Following code is used to set marker at point A.
QgsVertexMarker * marker = new QgsVertexMarker(mPlugin->iface()->mapCanvas()); marker->setColor(Qt::black); marker->setIconType(2); marker->setCenter(A);
I need to display a text near that point . how to do by c++ code?