In my plugin I do some labelling a vector layer with QgsPalLayerSettings
. This works fine for me with QgsMapRenderer::setLabelingEngine
.
But now I also want to implement the rulebased labelling. In API I found the class QgsRuleBasedLabeling::Rule
which I thought works similar to setting up a QgsRuleBasedRendererV2::RuleList
.
But I can't find the point where the QgsRuleBasedLabeling::Rule
has to be set. Ther is no member in QgsMapRenderer
. Does anybody has a hint?