Class: QgsLegendStyle¶
-
class
qgis.core.
QgsLegendStyle
¶ Bases:
sip.wrapper
Composer legend components style
Enums
Methods
The font for this style.
The font for this style.
setMargin(self, margin: float) Sets all margins
Gets style from name, used in project file
Gets style label, translated, used in UI
Gets name for style, used in project file
Signals
Attributes
-
Bottom
= 1¶
-
Group
= 3¶
-
Hidden
= 1¶
-
Left
= 2¶
-
Right
= 3¶
-
class
Side
¶ Bases:
int
-
class
Style
¶ Bases:
int
-
Subgroup
= 4¶
-
Symbol
= 5¶
-
SymbolLabel
= 6¶
-
Title
= 2¶
-
Top
= 0¶
-
Undefined
= 0¶
-
font
(self) → QFont¶ The font for this style.
-
margin
(self, side: QgsLegendStyle.Side) → float¶
-
readXml
(self, elem: QDomElement, doc: QDomDocument)¶
-
setFont
(self, font: QFont)¶ The font for this style.
-
setMargin
(self, side: QgsLegendStyle.Side, margin: float)¶ setMargin(self, margin: float) Sets all margins
-
styleFromName
(styleName: str) → QgsLegendStyle.Style¶ Gets style from name, used in project file
-
styleLabel
(s: QgsLegendStyle.Style) → str¶ Gets style label, translated, used in UI
-
styleName
(s: QgsLegendStyle.Style) → str¶ Gets name for style, used in project file
-
writeXml
(self, name: str, elem: QDomElement, doc: QDomDocument)¶
-