mosaic.widgets.StyledListWidgetItem#

class StyledListWidgetItem(text, visible=True, metadata=None, parent=None, editable=False)[source]#

Bases: QListWidgetItem

__init__(text, visible=True, metadata=None, parent=None, editable=False)[source]#

Create a styled list widget item with type-specific icons.

Parameters:
textstr

The display text for the item

visiblebool

Whether the item is visible

metadatadict

Additional metadata for the item

parentQWidget

Parent widget

Methods

__init__(text[, visible, metadata, parent, ...])

Create a styled list widget item with type-specific icons.

background(self)

checkState(self)

clone(self)

data(self, role)

flags(self)

font(self)

foreground(self)

icon(self)

isHidden(self)

isSelected(self)

listWidget(self)

read(self, in_)

setBackground(self, brush)

setCheckState(self, state)

setData(self, role, value)

setFlags(self, aflags)

setFont(self, afont)

setForeground(self, brush)

setHidden(self, ahide)

setIcon(self, aicon)

setSelected(self, aselect)

setSizeHint(self, size)

setStatusTip(self, astatusTip)

setText(self, atext)

setTextAlignment(setTextAlignment)

setToolTip(self, atoolTip)

setWhatsThis(self, awhatsThis)

set_visible(visible)

sizeHint(self)

statusTip(self)

text(self)

textAlignment(self)

toolTip(self)

type(self)

whatsThis(self)

write(self, out)

Attributes

Type

UserType