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) Sets all margins styleFromName
Gets style from name, used in project file styleLabel
Gets style label, translated, used in UI styleName
Gets name for style, used in project file writeXml
Signals
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) 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)¶
-