C++ QGIS Conditional Label Colouring

المشرف العام

Administrator
طاقم الإدارة
I am using QGIS and C++.

When I create a layer of polygons with labels in the center I am able to use a RuleBasedRenderer to control the background colour of the polygon. How do I similarly control the colour of the label? The background colours are limited so the combinations will not be too long. So when for instance, the background is black, I want the label to be white.

Is it possible to have white labels on black polygons and black text on white polygons exist on the same layer?



أكثر...
 
أعلى