QMacToolBarItem¶

PyQt5.QtMacExtras.QMacToolBarItem

Inherits from QObject.

Description¶

The QMacToolBarItem class provides an item for QMacToolBar.

All items should have the text and icon properites set, or have the standardItem property set to something else than NoStandardItem.

See also

QMacToolBar.

Enums¶

StandardItem

Member

Value

Description

FlexibleSpace

2

A spacing item which grows to fill available space

NoStandardItem

0

Don’t use a standard item

Space

1

A spacing item

Methods¶

__init__(parent: QObject = None)

TODO


icon() → QIcon

See also

setIcon().


nativeToolBarItem() → NSToolbarItem

TODO


selectable() → bool

See also

setSelectable().


setIcon(QIcon)

See also

icon().


setSelectable(bool)

See also

selectable().


setStandardItem(StandardItem)

See also

standardItem().


setText(str)

See also

text().


standardItem() → StandardItem

See also

setStandardItem().


text() → str

See also

setText().

Signals¶

activated()

TODO