One more problem: how to disable rendering too many labels (overlapped labels) ?
I tried this code: bool inSets = QgsProject::instance()->readBoolEntry("PAL", "/ShowingAllLabels"); QgsPalLabeling* mPal = (QgsPalLabeling*)m_map->mapCanvas()->mapRenderer()->labelingEngine(); mPal->setShowingAllLabels(false); mPal->willUseLayer(layer); qDebug() << "IS SHOWING ALL LABELS:" << mPal->isShowingAllLabels() << inSets; It shows me that label overlapping is off, but it is on! What to do? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Labeling-in-vector-layer-development-on-Qt-tp5103733p5104148.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer