[Qgis-developer] Labeling in vector layer (development on Qt)

hubbatov hubbatov at mail.ru
Mon Feb 17 02:02:04 PST 2014

Here you used label_style.qml, there is the string "labeling/displayAll =
false". It is that i needed, but it not worked for me... :(

bool loadedStyle;
m_layer->loadNamedStyle( path_to_style + "/label_style.qml", loadedStyle);

m_layer->setCustomProperty("labeling/fieldName", "" );
m_layer->setCustomProperty("labeling","pal" );
m_layer->setCustomProperty("labeling/fontSize","8" );
m_layer->setCustomProperty("labeling/displayAll", "false");

What is wrong? I am at a loss...

View this message in context: http://osgeo-org.1560.x6.nabble.com/Labeling-in-vector-layer-development-on-Qt-tp5103733p5104176.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

More information about the Qgis-developer mailing list