Class: QgsScrollBarHighlight

class qgis.gui.QgsScrollBarHighlight

Bases: sip.wrapper

Encapsulates the details of a highlight in a scrollbar, used alongside QgsScrollBarHighlightController.

Added in version 3.38.

QgsScrollBarHighlight(category: int, position: int, color: Union[QColor, Qt.GlobalColor], priority: QgsScrollBarHighlight.Priority = QgsScrollBarHighlight.Priority.NormalPriority) Constructor for QgsScrollBarHighlight.

QgsScrollBarHighlight() Default constructor for QgsScrollBarHighlight.

QgsScrollBarHighlight(a0: QgsScrollBarHighlight)

Enums

Priority

Bases: enum.IntEnum

Signals

Attributes

class Priority(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: enum.IntEnum

Priority, which dictates how overlapping highlights are rendered

  • Invalid: Invalid

  • LowPriority: Low priority, rendered below all other highlights

  • NormalPriority: Normal priority

  • HighPriority: High priority

  • HighestPriority: Highest priority, rendered above all other highlights

HighPriority = 2
HighestPriority = 3
Invalid = -1
LowPriority = 0
NormalPriority = 1
category
color
position
priority