- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Used to describe the parameter necessary for drawing a menu item
Java wrapper for Qt class QStyleOptionMenuItem
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQStyleOptionMenuItem::CheckType
static enum
Java wrapper for Qt enumQStyleOptionMenuItem::MenuItemType
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOptionMenuItem arg__1) SeeQStyleOptionMenuItem::
operator=(QStyleOptionMenuItem) final boolean
checked()
Whether the menu item is checked or notThe type of checkmark of the menu itemclone()
Creates and returns a copy of this object.final QFont
font()
The font used for the menu item textfinal boolean
Kotlin property getter.Kotlin property getter.final QFont
getFont()
Kotlin property getter.final QIcon
getIcon()
Kotlin property getter.final int
Kotlin property getter.final boolean
Kotlin property getter.Kotlin property getter.final QRect
Kotlin property getter.final int
Kotlin property getter.final String
getText()
Kotlin property getter.final QIcon
icon()
The icon for the menu itemfinal int
The maximum icon width for the icon in the menu itemfinal boolean
Whether the menu as a whole has checkable items or notThe type of menu itemfinal QRect
menuRect()
The rectangle for the entire menufinal int
The reserved width for the menu item's shortcutfinal void
set
(QStyleOptionMenuItem arg__1) Deprecated.final void
setChecked
(boolean checked) Whether the menu item is checked or notfinal void
setCheckType
(QStyleOptionMenuItem.CheckType checkType) The type of checkmark of the menu itemfinal void
The font used for the menu item textfinal void
The icon for the menu itemfinal void
setMaxIconWidth
(int maxIconWidth) The maximum icon width for the icon in the menu itemfinal void
setMenuHasCheckableItems
(boolean menuHasCheckableItems) Whether the menu as a whole has checkable items or notfinal void
setMenuItemType
(QStyleOptionMenuItem.MenuItemType menuItemType) The type of menu itemfinal void
setMenuRect
(QRect menuRect) The rectangle for the entire menufinal void
setReservedShortcutWidth
(int reservedShortcutWidth) The reserved width for the menu item's shortcutfinal void
The text for the menu itemfinal String
text()
The text for the menu itemMethods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, getDirection, getFontMetrics, getPalette, getRect, getState, getStyleObject, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOptionMenuItem
public QStyleOptionMenuItem() -
QStyleOptionMenuItem
-
-
Method Details
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionMenuItem)
instead. -
assign
See
QStyleOptionMenuItem::
operator=(QStyleOptionMenuItem) -
setCheckType
The type of checkmark of the menu item
-
getCheckType
Kotlin property getter. In Java use
checkType()
instead. -
checkType
The type of checkmark of the menu item
-
setChecked
Whether the menu item is checked or not
-
getChecked
Kotlin property getter. In Java use
checked()
instead. -
checked
Whether the menu item is checked or not
-
setFont
The font used for the menu item text
-
getFont
Kotlin property getter. In Java use
font()
instead. -
font
The font used for the menu item text
-
setIcon
The icon for the menu item
-
getIcon
Kotlin property getter. In Java use
icon()
instead. -
icon
The icon for the menu item
-
setMaxIconWidth
The maximum icon width for the icon in the menu item
-
getMaxIconWidth
Kotlin property getter. In Java use
maxIconWidth()
instead. -
maxIconWidth
The maximum icon width for the icon in the menu item
-
setMenuHasCheckableItems
Whether the menu as a whole has checkable items or not
-
getMenuHasCheckableItems
Kotlin property getter. In Java use
menuHasCheckableItems()
instead. -
setMenuItemType
The type of menu item
-
getMenuItemType
Kotlin property getter. In Java use
menuItemType()
instead. -
setMenuRect
The rectangle for the entire menu
-
getMenuRect
Kotlin property getter. In Java use
menuRect()
instead. -
setReservedShortcutWidth
The reserved width for the menu item's shortcut
-
getReservedShortcutWidth
Kotlin property getter. In Java use
reservedShortcutWidth()
instead. -
reservedShortcutWidth
The reserved width for the menu item's shortcut
-
setText
The text for the menu item
-
getText
Kotlin property getter. In Java use
text()
instead. -
text
The text for the menu item
-
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQStyleOption
-
assign(io.qt.widgets.QStyleOptionMenuItem)
instead.