Subgroup: Legend
Class: QgsLegendStyle¶
-
class
qgis.core.
QgsLegendStyle
¶ Bases:
sip.wrapper
Composer legend components style
Methods
font
The font for this style. margin
readXml
setFont
The font for this style. setMargin
setMargin(self, margin: float) styleFromName
Get style from name, used in project file styleLabel
Get style label, translated, used in UI styleName
Get name for style, used in project file writeXml
Attributes
Bottom
Group
Hidden
Left
Right
Subgroup
Symbol
SymbolLabel
Title
Top
Undefined
-
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) set all margins
-
styleFromName
(styleName: str) → QgsLegendStyle.Style¶ Get style from name, used in project file
-
styleLabel
(s: QgsLegendStyle.Style) → str¶ Get style label, translated, used in UI
-
styleName
(s: QgsLegendStyle.Style) → str¶ Get name for style, used in project file
-
writeXml
(self, name: str, elem: QDomElement, doc: QDomDocument)¶
-