API reference - Class QStyle::PrimitiveElement

Notation used in Ruby API documentation

Module: QtWidgets

Description: This class represents the QStyle::PrimitiveElement enum

This class is equivalent to the class QStyle_PrimitiveElement

Public constructors

new QStyle_PrimitiveElement ptrnew(int i)Creates an enum from an integer value
new QStyle_PrimitiveElement ptrnew(string s)Creates an enum from a string value

Public methods

[const]bool!=(const QStyle_PrimitiveElement other)Compares two enums for inequality
[const]bool!=(int other)Compares an enum with an integer for inequality
[const]bool<(const QStyle_PrimitiveElement other)Returns true if the first enum is less (in the enum symbol order) than the second
[const]bool<(int other)Returns true if the enum is less (in the enum symbol order) than the integer value
[const]bool==(const QStyle_PrimitiveElement other)Compares two enums
[const]bool==(int other)Compares an enum with an integer value
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidassign(const QStyle_PrimitiveElement other)Assigns another object to self
[const]new QStyle_PrimitiveElement ptrdupCreates a copy of self
[const]stringinspectConverts an enum to a visual string
[const]intto_iGets the integer value from the enum
[const]stringto_sGets the symbolic string from an enum
[const]QStyle_QFlags_PrimitiveElement|(const QStyle_PrimitiveElement other)Creates a flag set by combining the two flags
[const]QStyle_QFlags_PrimitiveElement|(const QStyle_QFlags_PrimitiveElement other)Combines the flag and the flag set

Public static methods and constants

[static,const]QStyle_PrimitiveElementPE_CustomBaseEnum constant QStyle::PE_CustomBase
[static,const]QStyle_PrimitiveElementPE_FrameEnum constant QStyle::PE_Frame
[static,const]QStyle_PrimitiveElementPE_FrameButtonBevelEnum constant QStyle::PE_FrameButtonBevel
[static,const]QStyle_PrimitiveElementPE_FrameButtonToolEnum constant QStyle::PE_FrameButtonTool
[static,const]QStyle_PrimitiveElementPE_FrameDefaultButtonEnum constant QStyle::PE_FrameDefaultButton
[static,const]QStyle_PrimitiveElementPE_FrameDockWidgetEnum constant QStyle::PE_FrameDockWidget
[static,const]QStyle_PrimitiveElementPE_FrameFocusRectEnum constant QStyle::PE_FrameFocusRect
[static,const]QStyle_PrimitiveElementPE_FrameGroupBoxEnum constant QStyle::PE_FrameGroupBox
[static,const]QStyle_PrimitiveElementPE_FrameLineEditEnum constant QStyle::PE_FrameLineEdit
[static,const]QStyle_PrimitiveElementPE_FrameMenuEnum constant QStyle::PE_FrameMenu
[static,const]QStyle_PrimitiveElementPE_FrameStatusBarEnum constant QStyle::PE_FrameStatusBar
[static,const]QStyle_PrimitiveElementPE_FrameStatusBarItemEnum constant QStyle::PE_FrameStatusBarItem
[static,const]QStyle_PrimitiveElementPE_FrameTabBarBaseEnum constant QStyle::PE_FrameTabBarBase
[static,const]QStyle_PrimitiveElementPE_FrameTabWidgetEnum constant QStyle::PE_FrameTabWidget
[static,const]QStyle_PrimitiveElementPE_FrameWindowEnum constant QStyle::PE_FrameWindow
[static,const]QStyle_PrimitiveElementPE_IndicatorArrowDownEnum constant QStyle::PE_IndicatorArrowDown
[static,const]QStyle_PrimitiveElementPE_IndicatorArrowLeftEnum constant QStyle::PE_IndicatorArrowLeft
[static,const]QStyle_PrimitiveElementPE_IndicatorArrowRightEnum constant QStyle::PE_IndicatorArrowRight
[static,const]QStyle_PrimitiveElementPE_IndicatorArrowUpEnum constant QStyle::PE_IndicatorArrowUp
[static,const]QStyle_PrimitiveElementPE_IndicatorBranchEnum constant QStyle::PE_IndicatorBranch
[static,const]QStyle_PrimitiveElementPE_IndicatorButtonDropDownEnum constant QStyle::PE_IndicatorButtonDropDown
[static,const]QStyle_PrimitiveElementPE_IndicatorCheckBoxEnum constant QStyle::PE_IndicatorCheckBox
[static,const]QStyle_PrimitiveElementPE_IndicatorColumnViewArrowEnum constant QStyle::PE_IndicatorColumnViewArrow
[static,const]QStyle_PrimitiveElementPE_IndicatorDockWidgetResizeHandleEnum constant QStyle::PE_IndicatorDockWidgetResizeHandle
[static,const]QStyle_PrimitiveElementPE_IndicatorHeaderArrowEnum constant QStyle::PE_IndicatorHeaderArrow
[static,const]QStyle_PrimitiveElementPE_IndicatorItemViewItemCheckEnum constant QStyle::PE_IndicatorItemViewItemCheck
[static,const]QStyle_PrimitiveElementPE_IndicatorItemViewItemDropEnum constant QStyle::PE_IndicatorItemViewItemDrop
[static,const]QStyle_PrimitiveElementPE_IndicatorMenuCheckMarkEnum constant QStyle::PE_IndicatorMenuCheckMark
[static,const]QStyle_PrimitiveElementPE_IndicatorProgressChunkEnum constant QStyle::PE_IndicatorProgressChunk
[static,const]QStyle_PrimitiveElementPE_IndicatorRadioButtonEnum constant QStyle::PE_IndicatorRadioButton
[static,const]QStyle_PrimitiveElementPE_IndicatorSpinDownEnum constant QStyle::PE_IndicatorSpinDown
[static,const]QStyle_PrimitiveElementPE_IndicatorSpinMinusEnum constant QStyle::PE_IndicatorSpinMinus
[static,const]QStyle_PrimitiveElementPE_IndicatorSpinPlusEnum constant QStyle::PE_IndicatorSpinPlus
[static,const]QStyle_PrimitiveElementPE_IndicatorSpinUpEnum constant QStyle::PE_IndicatorSpinUp
[static,const]QStyle_PrimitiveElementPE_IndicatorTabCloseEnum constant QStyle::PE_IndicatorTabClose
[static,const]QStyle_PrimitiveElementPE_IndicatorTabTearEnum constant QStyle::PE_IndicatorTabTear
[static,const]QStyle_PrimitiveElementPE_IndicatorToolBarHandleEnum constant QStyle::PE_IndicatorToolBarHandle
[static,const]QStyle_PrimitiveElementPE_IndicatorToolBarSeparatorEnum constant QStyle::PE_IndicatorToolBarSeparator
[static,const]QStyle_PrimitiveElementPE_IndicatorViewItemCheckEnum constant QStyle::PE_IndicatorViewItemCheck
[static,const]QStyle_PrimitiveElementPE_PanelButtonBevelEnum constant QStyle::PE_PanelButtonBevel
[static,const]QStyle_PrimitiveElementPE_PanelButtonCommandEnum constant QStyle::PE_PanelButtonCommand
[static,const]QStyle_PrimitiveElementPE_PanelButtonToolEnum constant QStyle::PE_PanelButtonTool
[static,const]QStyle_PrimitiveElementPE_PanelItemViewItemEnum constant QStyle::PE_PanelItemViewItem
[static,const]QStyle_PrimitiveElementPE_PanelItemViewRowEnum constant QStyle::PE_PanelItemViewRow
[static,const]QStyle_PrimitiveElementPE_PanelLineEditEnum constant QStyle::PE_PanelLineEdit
[static,const]QStyle_PrimitiveElementPE_PanelMenuEnum constant QStyle::PE_PanelMenu
[static,const]QStyle_PrimitiveElementPE_PanelMenuBarEnum constant QStyle::PE_PanelMenuBar
[static,const]QStyle_PrimitiveElementPE_PanelScrollAreaCornerEnum constant QStyle::PE_PanelScrollAreaCorner
[static,const]QStyle_PrimitiveElementPE_PanelStatusBarEnum constant QStyle::PE_PanelStatusBar
[static,const]QStyle_PrimitiveElementPE_PanelTipLabelEnum constant QStyle::PE_PanelTipLabel
[static,const]QStyle_PrimitiveElementPE_PanelToolBarEnum constant QStyle::PE_PanelToolBar
[static,const]QStyle_PrimitiveElementPE_WidgetEnum constant QStyle::PE_Widget

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

!=

(1) Signature: [const] bool != (const QStyle_PrimitiveElement other)

Description: Compares two enums for inequality

(2) Signature: [const] bool != (int other)

Description: Compares an enum with an integer for inequality

<

(1) Signature: [const] bool < (const QStyle_PrimitiveElement other)

Description: Returns true if the first enum is less (in the enum symbol order) than the second

(2) Signature: [const] bool < (int other)

Description: Returns true if the enum is less (in the enum symbol order) than the integer value

==

(1) Signature: [const] bool == (const QStyle_PrimitiveElement other)

Description: Compares two enums

(2) Signature: [const] bool == (int other)

Description: Compares an enum with an integer value

PE_CustomBase

Signature: [static,const] QStyle_PrimitiveElement PE_CustomBase

Description: Enum constant QStyle::PE_CustomBase

Python specific notes:
The object exposes a readable attribute 'PE_CustomBase'. This is the getter.

PE_Frame

Signature: [static,const] QStyle_PrimitiveElement PE_Frame

Description: Enum constant QStyle::PE_Frame

Python specific notes:
The object exposes a readable attribute 'PE_Frame'. This is the getter.

PE_FrameButtonBevel

Signature: [static,const] QStyle_PrimitiveElement PE_FrameButtonBevel

Description: Enum constant QStyle::PE_FrameButtonBevel

Python specific notes:
The object exposes a readable attribute 'PE_FrameButtonBevel'. This is the getter.

PE_FrameButtonTool

Signature: [static,const] QStyle_PrimitiveElement PE_FrameButtonTool

Description: Enum constant QStyle::PE_FrameButtonTool

Python specific notes:
The object exposes a readable attribute 'PE_FrameButtonTool'. This is the getter.

PE_FrameDefaultButton

Signature: [static,const] QStyle_PrimitiveElement PE_FrameDefaultButton

Description: Enum constant QStyle::PE_FrameDefaultButton

Python specific notes:
The object exposes a readable attribute 'PE_FrameDefaultButton'. This is the getter.

PE_FrameDockWidget

Signature: [static,const] QStyle_PrimitiveElement PE_FrameDockWidget

Description: Enum constant QStyle::PE_FrameDockWidget

Python specific notes:
The object exposes a readable attribute 'PE_FrameDockWidget'. This is the getter.

PE_FrameFocusRect

Signature: [static,const] QStyle_PrimitiveElement PE_FrameFocusRect

Description: Enum constant QStyle::PE_FrameFocusRect

Python specific notes:
The object exposes a readable attribute 'PE_FrameFocusRect'. This is the getter.

PE_FrameGroupBox

Signature: [static,const] QStyle_PrimitiveElement PE_FrameGroupBox

Description: Enum constant QStyle::PE_FrameGroupBox

Python specific notes:
The object exposes a readable attribute 'PE_FrameGroupBox'. This is the getter.

PE_FrameLineEdit

Signature: [static,const] QStyle_PrimitiveElement PE_FrameLineEdit

Description: Enum constant QStyle::PE_FrameLineEdit

Python specific notes:
The object exposes a readable attribute 'PE_FrameLineEdit'. This is the getter.

PE_FrameMenu

Signature: [static,const] QStyle_PrimitiveElement PE_FrameMenu

Description: Enum constant QStyle::PE_FrameMenu

Python specific notes:
The object exposes a readable attribute 'PE_FrameMenu'. This is the getter.

PE_FrameStatusBar

Signature: [static,const] QStyle_PrimitiveElement PE_FrameStatusBar

Description: Enum constant QStyle::PE_FrameStatusBar

Python specific notes:
The object exposes a readable attribute 'PE_FrameStatusBar'. This is the getter.

PE_FrameStatusBarItem

Signature: [static,const] QStyle_PrimitiveElement PE_FrameStatusBarItem

Description: Enum constant QStyle::PE_FrameStatusBarItem

Python specific notes:
The object exposes a readable attribute 'PE_FrameStatusBarItem'. This is the getter.

PE_FrameTabBarBase

Signature: [static,const] QStyle_PrimitiveElement PE_FrameTabBarBase

Description: Enum constant QStyle::PE_FrameTabBarBase

Python specific notes:
The object exposes a readable attribute 'PE_FrameTabBarBase'. This is the getter.

PE_FrameTabWidget

Signature: [static,const] QStyle_PrimitiveElement PE_FrameTabWidget

Description: Enum constant QStyle::PE_FrameTabWidget

Python specific notes:
The object exposes a readable attribute 'PE_FrameTabWidget'. This is the getter.

PE_FrameWindow

Signature: [static,const] QStyle_PrimitiveElement PE_FrameWindow

Description: Enum constant QStyle::PE_FrameWindow

Python specific notes:
The object exposes a readable attribute 'PE_FrameWindow'. This is the getter.

PE_IndicatorArrowDown

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorArrowDown

Description: Enum constant QStyle::PE_IndicatorArrowDown

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorArrowDown'. This is the getter.

PE_IndicatorArrowLeft

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorArrowLeft

Description: Enum constant QStyle::PE_IndicatorArrowLeft

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorArrowLeft'. This is the getter.

PE_IndicatorArrowRight

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorArrowRight

Description: Enum constant QStyle::PE_IndicatorArrowRight

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorArrowRight'. This is the getter.

PE_IndicatorArrowUp

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorArrowUp

Description: Enum constant QStyle::PE_IndicatorArrowUp

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorArrowUp'. This is the getter.

PE_IndicatorBranch

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorBranch

Description: Enum constant QStyle::PE_IndicatorBranch

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorBranch'. This is the getter.

PE_IndicatorButtonDropDown

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorButtonDropDown

Description: Enum constant QStyle::PE_IndicatorButtonDropDown

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorButtonDropDown'. This is the getter.

PE_IndicatorCheckBox

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorCheckBox

Description: Enum constant QStyle::PE_IndicatorCheckBox

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorCheckBox'. This is the getter.

PE_IndicatorColumnViewArrow

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorColumnViewArrow

Description: Enum constant QStyle::PE_IndicatorColumnViewArrow

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorColumnViewArrow'. This is the getter.

PE_IndicatorDockWidgetResizeHandle

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorDockWidgetResizeHandle

Description: Enum constant QStyle::PE_IndicatorDockWidgetResizeHandle

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorDockWidgetResizeHandle'. This is the getter.

PE_IndicatorHeaderArrow

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorHeaderArrow

Description: Enum constant QStyle::PE_IndicatorHeaderArrow

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorHeaderArrow'. This is the getter.

PE_IndicatorItemViewItemCheck

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorItemViewItemCheck

Description: Enum constant QStyle::PE_IndicatorItemViewItemCheck

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorItemViewItemCheck'. This is the getter.

PE_IndicatorItemViewItemDrop

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorItemViewItemDrop

Description: Enum constant QStyle::PE_IndicatorItemViewItemDrop

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorItemViewItemDrop'. This is the getter.

PE_IndicatorMenuCheckMark

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorMenuCheckMark

Description: Enum constant QStyle::PE_IndicatorMenuCheckMark

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorMenuCheckMark'. This is the getter.

PE_IndicatorProgressChunk

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorProgressChunk

Description: Enum constant QStyle::PE_IndicatorProgressChunk

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorProgressChunk'. This is the getter.

PE_IndicatorRadioButton

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorRadioButton

Description: Enum constant QStyle::PE_IndicatorRadioButton

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorRadioButton'. This is the getter.

PE_IndicatorSpinDown

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorSpinDown

Description: Enum constant QStyle::PE_IndicatorSpinDown

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorSpinDown'. This is the getter.

PE_IndicatorSpinMinus

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorSpinMinus

Description: Enum constant QStyle::PE_IndicatorSpinMinus

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorSpinMinus'. This is the getter.

PE_IndicatorSpinPlus

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorSpinPlus

Description: Enum constant QStyle::PE_IndicatorSpinPlus

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorSpinPlus'. This is the getter.

PE_IndicatorSpinUp

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorSpinUp

Description: Enum constant QStyle::PE_IndicatorSpinUp

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorSpinUp'. This is the getter.

PE_IndicatorTabClose

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorTabClose

Description: Enum constant QStyle::PE_IndicatorTabClose

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorTabClose'. This is the getter.

PE_IndicatorTabTear

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorTabTear

Description: Enum constant QStyle::PE_IndicatorTabTear

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorTabTear'. This is the getter.

PE_IndicatorToolBarHandle

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorToolBarHandle

Description: Enum constant QStyle::PE_IndicatorToolBarHandle

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorToolBarHandle'. This is the getter.

PE_IndicatorToolBarSeparator

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorToolBarSeparator

Description: Enum constant QStyle::PE_IndicatorToolBarSeparator

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorToolBarSeparator'. This is the getter.

PE_IndicatorViewItemCheck

Signature: [static,const] QStyle_PrimitiveElement PE_IndicatorViewItemCheck

Description: Enum constant QStyle::PE_IndicatorViewItemCheck

Python specific notes:
The object exposes a readable attribute 'PE_IndicatorViewItemCheck'. This is the getter.

PE_PanelButtonBevel

Signature: [static,const] QStyle_PrimitiveElement PE_PanelButtonBevel

Description: Enum constant QStyle::PE_PanelButtonBevel

Python specific notes:
The object exposes a readable attribute 'PE_PanelButtonBevel'. This is the getter.

PE_PanelButtonCommand

Signature: [static,const] QStyle_PrimitiveElement PE_PanelButtonCommand

Description: Enum constant QStyle::PE_PanelButtonCommand

Python specific notes:
The object exposes a readable attribute 'PE_PanelButtonCommand'. This is the getter.

PE_PanelButtonTool

Signature: [static,const] QStyle_PrimitiveElement PE_PanelButtonTool

Description: Enum constant QStyle::PE_PanelButtonTool

Python specific notes:
The object exposes a readable attribute 'PE_PanelButtonTool'. This is the getter.

PE_PanelItemViewItem

Signature: [static,const] QStyle_PrimitiveElement PE_PanelItemViewItem

Description: Enum constant QStyle::PE_PanelItemViewItem

Python specific notes:
The object exposes a readable attribute 'PE_PanelItemViewItem'. This is the getter.

PE_PanelItemViewRow

Signature: [static,const] QStyle_PrimitiveElement PE_PanelItemViewRow

Description: Enum constant QStyle::PE_PanelItemViewRow

Python specific notes:
The object exposes a readable attribute 'PE_PanelItemViewRow'. This is the getter.

PE_PanelLineEdit

Signature: [static,const] QStyle_PrimitiveElement PE_PanelLineEdit

Description: Enum constant QStyle::PE_PanelLineEdit

Python specific notes:
The object exposes a readable attribute 'PE_PanelLineEdit'. This is the getter.

PE_PanelMenu

Signature: [static,const] QStyle_PrimitiveElement PE_PanelMenu

Description: Enum constant QStyle::PE_PanelMenu

Python specific notes:
The object exposes a readable attribute 'PE_PanelMenu'. This is the getter.

PE_PanelMenuBar

Signature: [static,const] QStyle_PrimitiveElement PE_PanelMenuBar

Description: Enum constant QStyle::PE_PanelMenuBar

Python specific notes:
The object exposes a readable attribute 'PE_PanelMenuBar'. This is the getter.

PE_PanelScrollAreaCorner

Signature: [static,const] QStyle_PrimitiveElement PE_PanelScrollAreaCorner

Description: Enum constant QStyle::PE_PanelScrollAreaCorner

Python specific notes:
The object exposes a readable attribute 'PE_PanelScrollAreaCorner'. This is the getter.

PE_PanelStatusBar

Signature: [static,const] QStyle_PrimitiveElement PE_PanelStatusBar

Description: Enum constant QStyle::PE_PanelStatusBar

Python specific notes:
The object exposes a readable attribute 'PE_PanelStatusBar'. This is the getter.

PE_PanelTipLabel

Signature: [static,const] QStyle_PrimitiveElement PE_PanelTipLabel

Description: Enum constant QStyle::PE_PanelTipLabel

Python specific notes:
The object exposes a readable attribute 'PE_PanelTipLabel'. This is the getter.

PE_PanelToolBar

Signature: [static,const] QStyle_PrimitiveElement PE_PanelToolBar

Description: Enum constant QStyle::PE_PanelToolBar

Python specific notes:
The object exposes a readable attribute 'PE_PanelToolBar'. This is the getter.

PE_Widget

Signature: [static,const] QStyle_PrimitiveElement PE_Widget

Description: Enum constant QStyle::PE_Widget

Python specific notes:
The object exposes a readable attribute 'PE_Widget'. This is the getter.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

assign

Signature: void assign (const QStyle_PrimitiveElement other)

Description: Assigns another object to self

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

dup

Signature: [const] new QStyle_PrimitiveElement ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

inspect

Signature: [const] string inspect

Description: Converts an enum to a visual string

Python specific notes:
This method is also available as 'repr(object)'.

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

new

(1) Signature: [static] new QStyle_PrimitiveElement ptr new (int i)

Description: Creates an enum from an integer value

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QStyle_PrimitiveElement ptr new (string s)

Description: Creates an enum from a string value

Python specific notes:
This method is the default initializer of the object.

to_i

Signature: [const] int to_i

Description: Gets the integer value from the enum

to_s

Signature: [const] string to_s

Description: Gets the symbolic string from an enum

Python specific notes:
This method is also available as 'str(object)'.

|

(1) Signature: [const] QStyle_QFlags_PrimitiveElement | (const QStyle_PrimitiveElement other)

Description: Creates a flag set by combining the two flags

(2) Signature: [const] QStyle_QFlags_PrimitiveElement | (const QStyle_QFlags_PrimitiveElement other)

Description: Combines the flag and the flag set