[Qgis-developer] Labeling in vector layer (development on Qt)
hubbatov
hubbatov at mail.ru
Sun Feb 16 23:41:06 PST 2014
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.
More information about the Qgis-developer
mailing list