java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.widgets.QStyleOption
io.qt.widgets.QStyleOptionMenuItem
- 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 enum QStyleOptionMenuItem::CheckTypestatic enum
Java wrapper for Qt enum QStyleOptionMenuItem::MenuItemTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
checked()
Whether the menu item is checked or notThe type of checkmark of the menu itemclone()
final QFont
font()
The font used for the menu item textfinal 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 void
set
(QStyleOptionMenuItem arg__1) 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
setTabWidth
(int tabWidth) The reserved width for the menu item's shortcutfinal void
The text for the menu itemfinal int
tabWidth()
The reserved width for the menu item's shortcutfinal String
text()
The text for the menu itemMethods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, init, 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
-
QStyleOptionMenuItem
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setCheckType
The type of checkmark of the menu item
-
checkType
The type of checkmark of the menu item
-
setChecked
Whether the menu item is checked or not
-
checked
Whether the menu item is checked or not
-
setFont
The font used for the menu item text
-
font
The font used for the menu item text
-
setIcon
The icon for the menu item
-
icon
The icon for the menu item
-
setMaxIconWidth
The maximum icon width for the icon in the menu item
-
maxIconWidth
The maximum icon width for the icon in the menu item
-
setMenuHasCheckableItems
Whether the menu as a whole has checkable items or not
-
setMenuItemType
The type of menu item
-
setMenuRect
The rectangle for the entire menu
-
setTabWidth
The reserved width for the menu item's shortcut
-
tabWidth
The reserved width for the menu item's shortcut
-
setText
The text for the menu item
-
text
The text for the menu item
-
clone
- Overrides:
clone
in classQStyleOption
-