KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QGraphicsWidget

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QGraphicsWidget

Class hierarchy: QGraphicsWidget » QGraphicsObject » QObject

Sub-classes:

Public constructors

new QGraphicsWidgetnew(QGraphicsItem ptr parent = nullptr,
Qt_QFlags_WindowType wFlags = Qt::WindowFlags())
Constructor QGraphicsWidget::QGraphicsWidget(QGraphicsItem *parent, QFlags<Qt::WindowType> wFlags)

Public methods

[const]QGraphicsWidget ptr_const_castReturns a non-const reference to self.
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.
[const]QAction ptr[]actionsMethod QList<QAction*> QGraphicsWidget::actions()
voidaddAction(QAction ptr action)Method void QGraphicsWidget::addAction(QAction *action)
voidaddActions(QAction ptr[] actions)Method void QGraphicsWidget::addActions(QList<QAction*> actions)
voidadjustSizeMethod void QGraphicsWidget::adjustSize()
voidadvance(int phase)Virtual method void QGraphicsWidget::advance(int phase)
[const]const QGraphicsLayoutItem ptrasConstQGraphicsLayoutItemDelivers the base class interface QGraphicsLayoutItem of QGraphicsWidget
[const]const QGraphicsObject ptrasConstQGraphicsObjectDelivers the base class interface QGraphicsObject of QGraphicsWidget
QGraphicsLayoutItem ptrasQGraphicsLayoutItemDelivers the base class interface QGraphicsLayoutItem of QGraphicsWidget
QGraphicsObject ptrasQGraphicsObjectDelivers the base class interface QGraphicsObject of QGraphicsWidget
[const]boolautoFillBackgroundMethod bool QGraphicsWidget::autoFillBackground()
voidautoFillBackground=(bool enabled)Method void QGraphicsWidget::setAutoFillBackground(bool enabled)
[const]QRectFboundingRectVirtual method QRectF QGraphicsWidget::boundingRect()
[const]QObject ptr[]childrenMethod const QList<QObject*> &QGraphicsWidget::children()
[signal]voidchildrenChangedSignal declaration for QGraphicsWidget::childrenChanged()
boolcloseMethod bool QGraphicsWidget::close()
[const]boolcollidesWithItem(const QGraphicsItem ptr other,
const Qt_ItemSelectionMode mode)
Virtual method bool QGraphicsWidget::collidesWithItem(const QGraphicsItem *other, Qt::ItemSelectionMode mode)
[const]boolcollidesWithPath(const QPainterPath path,
const Qt_ItemSelectionMode mode)
Virtual method bool QGraphicsWidget::collidesWithPath(const QPainterPath &path, Qt::ItemSelectionMode mode)
[const]boolcontains(const QPointF point)Virtual method bool QGraphicsWidget::contains(const QPointF &point)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QGraphicsWidget::destroyed(QObject *)
voidemit_childrenChangedEmitter for signal void QGraphicsWidget::childrenChanged()
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QGraphicsWidget::destroyed(QObject *)
voidemit_enabledChangedEmitter for signal void QGraphicsWidget::enabledChanged()
voidemit_geometryChangedEmitter for signal void QGraphicsWidget::geometryChanged()
voidemit_heightChangedEmitter for signal void QGraphicsWidget::heightChanged()
voidemit_layoutChangedEmitter for signal void QGraphicsWidget::layoutChanged()
voidemit_objectNameChanged(string objectName)Emitter for signal void QGraphicsWidget::objectNameChanged(const QString &objectName)
voidemit_opacityChangedEmitter for signal void QGraphicsWidget::opacityChanged()
voidemit_parentChangedEmitter for signal void QGraphicsWidget::parentChanged()
voidemit_rotationChangedEmitter for signal void QGraphicsWidget::rotationChanged()
voidemit_scaleChangedEmitter for signal void QGraphicsWidget::scaleChanged()
voidemit_visibleChangedEmitter for signal void QGraphicsWidget::visibleChanged()
voidemit_widthChangedEmitter for signal void QGraphicsWidget::widthChanged()
voidemit_xChangedEmitter for signal void QGraphicsWidget::xChanged()
voidemit_yChangedEmitter for signal void QGraphicsWidget::yChanged()
voidemit_zChangedEmitter for signal void QGraphicsWidget::zChanged()
[signal]voidenabledChangedSignal declaration for QGraphicsWidget::enabledChanged()
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QGraphicsWidget::eventFilter(QObject *watched, QEvent *event)
[const]Qt_FocusPolicyfocusPolicyMethod Qt::FocusPolicy QGraphicsWidget::focusPolicy()
voidfocusPolicy=(const Qt_FocusPolicy policy)Method void QGraphicsWidget::setFocusPolicy(Qt::FocusPolicy policy)
[const]QGraphicsWidget ptrfocusWidgetMethod QGraphicsWidget *QGraphicsWidget::focusWidget()
[const]QFontfontMethod QFont QGraphicsWidget::font()
voidfont=(const QFont font)Method void QGraphicsWidget::setFont(const QFont &font)
voidgeometry=(const QRectF rect)Method void QGraphicsWidget::setGeometry(const QRectF &rect)
[signal]voidgeometryChangedSignal declaration for QGraphicsWidget::geometryChanged()
[const]voidgetContentsMargins(double ptr left,
double ptr top,
double ptr right,
double ptr bottom)
Virtual method void QGraphicsWidget::getContentsMargins(double *left, double *top, double *right, double *bottom)
[const]voidgetWindowFrameMargins(double ptr left,
double ptr top,
double ptr right,
double ptr bottom)
Method void QGraphicsWidget::getWindowFrameMargins(double *left, double *top, double *right, double *bottom)
intgrabShortcut(const QKeySequence sequence,
const Qt_ShortcutContext context = Qt::WindowShortcut)
Method int QGraphicsWidget::grabShortcut(const QKeySequence &sequence, Qt::ShortcutContext context)
[signal]voidheightChangedSignal declaration for QGraphicsWidget::heightChanged()
voidinsertAction(QAction ptr before,
QAction ptr action)
Method void QGraphicsWidget::insertAction(QAction *before, QAction *action)
voidinsertActions(QAction ptr before,
QAction ptr[] actions)
Method void QGraphicsWidget::insertActions(QAction *before, QList<QAction*> actions)
[const]boolisActiveWindow?Method bool QGraphicsWidget::isActiveWindow()
[const]boolisObscuredBy(const QGraphicsItem ptr item)Virtual method bool QGraphicsWidget::isObscuredBy(const QGraphicsItem *item)
[const]QGraphicsLayout ptrlayoutMethod QGraphicsLayout *QGraphicsWidget::layout()
voidlayout=(QGraphicsLayout ptr layout)Method void QGraphicsWidget::setLayout(QGraphicsLayout *layout)
[signal]voidlayoutChangedSignal declaration for QGraphicsWidget::layoutChanged()
[const]Qt_LayoutDirectionlayoutDirectionMethod Qt::LayoutDirection QGraphicsWidget::layoutDirection()
voidlayoutDirection=(const Qt_LayoutDirection direction)Method void QGraphicsWidget::setLayoutDirection(Qt::LayoutDirection direction)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QGraphicsWidget::objectNameChanged(const QString &objectName)
[signal]voidopacityChangedSignal declaration for QGraphicsWidget::opacityChanged()
[const]QPainterPathopaqueAreaVirtual method QPainterPath QGraphicsWidget::opaqueArea()
voidpaint(QPainter ptr painter,
const QStyleOptionGraphicsItem ptr option,
QWidget ptr widget)
Virtual method void QGraphicsWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
voidpaintWindowFrame(QPainter ptr painter,
const QStyleOptionGraphicsItem ptr option,
QWidget ptr widget)
Virtual method void QGraphicsWidget::paintWindowFrame(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
[const]QPalettepaletteMethod QPalette QGraphicsWidget::palette()
voidpalette=(const QPalette palette)Method void QGraphicsWidget::setPalette(const QPalette &palette)
[signal]voidparentChangedSignal declaration for QGraphicsWidget::parentChanged()
[const]QRectFrectMethod QRectF QGraphicsWidget::rect()
voidreleaseShortcut(int id)Method void QGraphicsWidget::releaseShortcut(int id)
voidremoveAction(QAction ptr action)Method void QGraphicsWidget::removeAction(QAction *action)
voidresize(const QSizeF size)Method void QGraphicsWidget::resize(const QSizeF &size)
voidresize(double w,
double h)
Method void QGraphicsWidget::resize(double w, double h)
[signal]voidrotationChangedSignal declaration for QGraphicsWidget::rotationChanged()
[signal]voidscaleChangedSignal declaration for QGraphicsWidget::scaleChanged()
voidsetAttribute(const Qt_WidgetAttribute attribute,
bool on = true)
Method void QGraphicsWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
voidsetAutoFillBackground(bool enabled)Method void QGraphicsWidget::setAutoFillBackground(bool enabled)
voidsetContentsMargins(double left,
double top,
double right,
double bottom)
Method void QGraphicsWidget::setContentsMargins(double left, double top, double right, double bottom)
voidsetFocusPolicy(const Qt_FocusPolicy policy)Method void QGraphicsWidget::setFocusPolicy(Qt::FocusPolicy policy)
voidsetFont(const QFont font)Method void QGraphicsWidget::setFont(const QFont &font)
voidsetGeometry(const QRectF rect)Virtual method void QGraphicsWidget::setGeometry(const QRectF &rect)
voidsetLayout(QGraphicsLayout ptr layout)Method void QGraphicsWidget::setLayout(QGraphicsLayout *layout)
voidsetLayoutDirection(const Qt_LayoutDirection direction)Method void QGraphicsWidget::setLayoutDirection(Qt::LayoutDirection direction)
voidsetPalette(const QPalette palette)Method void QGraphicsWidget::setPalette(const QPalette &palette)
voidsetShortcutAutoRepeat(int id,
bool enabled = true)
Method void QGraphicsWidget::setShortcutAutoRepeat(int id, bool enabled)
voidsetShortcutEnabled(int id,
bool enabled = true)
Method void QGraphicsWidget::setShortcutEnabled(int id, bool enabled)
voidsetStyle(QStyle ptr style)Method void QGraphicsWidget::setStyle(QStyle *style)
voidsetWindowFlags(Qt_QFlags_WindowType wFlags)Method void QGraphicsWidget::setWindowFlags(QFlags<Qt::WindowType> wFlags)
voidsetWindowFrameMargins(double left,
double top,
double right,
double bottom)
Method void QGraphicsWidget::setWindowFrameMargins(double left, double top, double right, double bottom)
voidsetWindowTitle(string title)Method void QGraphicsWidget::setWindowTitle(const QString &title)
[const]QPainterPathshapeVirtual method QPainterPath QGraphicsWidget::shape()
[const]QSizeFsizeMethod QSizeF QGraphicsWidget::size()
[const]QStyle ptrstyleMethod QStyle *QGraphicsWidget::style()
voidstyle=(QStyle ptr style)Method void QGraphicsWidget::setStyle(QStyle *style)
[const]booltestAttribute(const Qt_WidgetAttribute attribute)Method bool QGraphicsWidget::testAttribute(Qt::WidgetAttribute attribute)
[const]inttypeVirtual method int QGraphicsWidget::type()
voidunsetLayoutDirectionMethod void QGraphicsWidget::unsetLayoutDirection()
voidunsetWindowFrameMarginsMethod void QGraphicsWidget::unsetWindowFrameMargins()
[signal]voidvisibleChangedSignal declaration for QGraphicsWidget::visibleChanged()
[signal]voidwidthChangedSignal declaration for QGraphicsWidget::widthChanged()
[const]Qt_QFlags_WindowTypewindowFlagsMethod QFlags<Qt::WindowType> QGraphicsWidget::windowFlags()
voidwindowFlags=(Qt_QFlags_WindowType wFlags)Method void QGraphicsWidget::setWindowFlags(QFlags<Qt::WindowType> wFlags)
[const]QRectFwindowFrameGeometryMethod QRectF QGraphicsWidget::windowFrameGeometry()
[const]QRectFwindowFrameRectMethod QRectF QGraphicsWidget::windowFrameRect()
[const]stringwindowTitleMethod QString QGraphicsWidget::windowTitle()
voidwindowTitle=(string title)Method void QGraphicsWidget::setWindowTitle(const QString &title)
[const]Qt_WindowTypewindowTypeMethod Qt::WindowType QGraphicsWidget::windowType()
[signal]voidxChangedSignal declaration for QGraphicsWidget::xChanged()
[signal]voidyChangedSignal declaration for QGraphicsWidget::yChanged()
[signal]voidzChangedSignal declaration for QGraphicsWidget::zChanged()

Public static methods and constants

voidsetTabOrder(QGraphicsWidget ptr first,
QGraphicsWidget ptr second)
Static method void QGraphicsWidget::setTabOrder(QGraphicsWidget *first, QGraphicsWidget *second)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsWidget::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsWidget::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidaddToIndexMethod void QGraphicsWidget::addToIndex()
voidchangeEvent(QEvent ptr event)Virtual method void QGraphicsWidget::changeEvent(QEvent *event)
voidchildEvent(QChildEvent ptr event)Virtual method void QGraphicsWidget::childEvent(QChildEvent *event)
voidcloseEvent(QCloseEvent ptr event)Virtual method void QGraphicsWidget::closeEvent(QCloseEvent *event)
voidcontextMenuEvent(QGraphicsSceneContextMenuEvent ptr event)Virtual method void QGraphicsWidget::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QGraphicsWidget::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QGraphicsWidget::disconnectNotify(const QMetaMethod &signal)
voiddragEnterEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsWidget::dragEnterEvent(QGraphicsSceneDragDropEvent *event)
voiddragLeaveEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsWidget::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
voiddragMoveEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsWidget::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
voiddropEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsWidget::dropEvent(QGraphicsSceneDragDropEvent *event)
boolevent(QEvent ptr event)Virtual method bool QGraphicsWidget::event(QEvent *event)
[const]variantextension(variant variant)Virtual method QVariant QGraphicsWidget::extension(const QVariant &variant)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QGraphicsWidget::focusInEvent(QFocusEvent *event)
boolfocusNextPrevChild(bool next)Virtual method bool QGraphicsWidget::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QGraphicsWidget::focusOutEvent(QFocusEvent *event)
voidgrabKeyboardEvent(QEvent ptr event)Virtual method void QGraphicsWidget::grabKeyboardEvent(QEvent *event)
voidgrabMouseEvent(QEvent ptr event)Virtual method void QGraphicsWidget::grabMouseEvent(QEvent *event)
voidhideEvent(QHideEvent ptr event)Virtual method void QGraphicsWidget::hideEvent(QHideEvent *event)
voidhoverEnterEvent(QGraphicsSceneHoverEvent ptr event)Virtual method void QGraphicsWidget::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
voidhoverLeaveEvent(QGraphicsSceneHoverEvent ptr event)Virtual method void QGraphicsWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
voidhoverMoveEvent(QGraphicsSceneHoverEvent ptr event)Virtual method void QGraphicsWidget::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
[const]voidinitStyleOption(QStyleOption ptr option)Virtual method void QGraphicsWidget::initStyleOption(QStyleOption *option)
voidinputMethodEvent(QInputMethodEvent ptr event)Virtual method void QGraphicsWidget::inputMethodEvent(QInputMethodEvent *event)
[const]variantinputMethodQuery(const Qt_InputMethodQuery query)Virtual method QVariant QGraphicsWidget::inputMethodQuery(Qt::InputMethodQuery query)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QGraphicsWidget::isSignalConnected(const QMetaMethod &signal)
variantitemChange(const QGraphicsItem_GraphicsItemChange change,
variant value)
Virtual method QVariant QGraphicsWidget::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QGraphicsWidget::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QGraphicsWidget::keyReleaseEvent(QKeyEvent *event)
voidmouseDoubleClickEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsWidget::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
voidmouseMoveEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
voidmousePressEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
voidmouseReleaseEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
voidmoveEvent(QGraphicsSceneMoveEvent ptr event)Virtual method void QGraphicsWidget::moveEvent(QGraphicsSceneMoveEvent *event)
voidpolishEventVirtual method void QGraphicsWidget::polishEvent()
voidprepareGeometryChangeMethod void QGraphicsWidget::prepareGeometryChange()
variantpropertyChange(string propertyName,
variant value)
Virtual method QVariant QGraphicsWidget::propertyChange(const QString &propertyName, const QVariant &value)
[const]intreceivers(string signal)Method int QGraphicsWidget::receivers(const char *signal)
voidremoveFromIndexMethod void QGraphicsWidget::removeFromIndex()
voidresizeEvent(QGraphicsSceneResizeEvent ptr event)Virtual method void QGraphicsWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
boolsceneEvent(QEvent ptr event)Virtual method bool QGraphicsWidget::sceneEvent(QEvent *event)
boolsceneEventFilter(QGraphicsItem ptr watched,
QEvent ptr event)
Virtual method bool QGraphicsWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
[const]QObject ptrsenderMethod QObject *QGraphicsWidget::sender()
[const]intsenderSignalIndexMethod int QGraphicsWidget::senderSignalIndex()
voidsetExtension(unsigned int extension,
variant variant)
Virtual method void QGraphicsWidget::setExtension(QGraphicsItem::Extension extension, const QVariant &variant)
voidsetGraphicsItem(QGraphicsItem ptr item)Method void QGraphicsWidget::setGraphicsItem(QGraphicsItem *item)
voidsetOwnedByLayout(bool ownedByLayout)Method void QGraphicsWidget::setOwnedByLayout(bool ownedByLayout)
voidshowEvent(QShowEvent ptr event)Virtual method void QGraphicsWidget::showEvent(QShowEvent *event)
[const]QSizeFsizeHint(const Qt_SizeHint which,
const QSizeF constraint)
Virtual method QSizeF QGraphicsWidget::sizeHint(Qt::SizeHint which, const QSizeF &constraint)
[const]boolsupportsExtension(unsigned int extension)Virtual method bool QGraphicsWidget::supportsExtension(QGraphicsItem::Extension extension)
voidtimerEvent(QTimerEvent ptr event)Virtual method void QGraphicsWidget::timerEvent(QTimerEvent *event)
voidungrabKeyboardEvent(QEvent ptr event)Virtual method void QGraphicsWidget::ungrabKeyboardEvent(QEvent *event)
voidungrabMouseEvent(QEvent ptr event)Virtual method void QGraphicsWidget::ungrabMouseEvent(QEvent *event)
voidupdateGeometryVirtual method void QGraphicsWidget::updateGeometry()
voidupdateMicroFocusMethod void QGraphicsWidget::updateMicroFocus()
voidwheelEvent(QGraphicsSceneWheelEvent ptr event)Virtual method void QGraphicsWidget::wheelEvent(QGraphicsSceneWheelEvent *event)
boolwindowFrameEvent(QEvent ptr e)Virtual method bool QGraphicsWidget::windowFrameEvent(QEvent *e)
[const]Qt_WindowFrameSectionwindowFrameSectionAt(const QPointF pos)Virtual method Qt::WindowFrameSection QGraphicsWidget::windowFrameSectionAt(const QPointF &pos)

Detailed description

_const_cast

Signature: [const] QGraphicsWidget ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_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.

actions

Signature: [const] QAction ptr[] actions

Description: Method QList<QAction*> QGraphicsWidget::actions()

addAction

Signature: void addAction (QAction ptr action)

Description: Method void QGraphicsWidget::addAction(QAction *action)

addActions

Signature: void addActions (QAction ptr[] actions)

Description: Method void QGraphicsWidget::addActions(QList<QAction*> actions)

addToIndex

Signature: void addToIndex

Description: Method void QGraphicsWidget::addToIndex()

This method is protected and can only be called from inside a derived class.

adjustSize

Signature: void adjustSize

Description: Method void QGraphicsWidget::adjustSize()

advance

Signature: void advance (int phase)

Description: Virtual method void QGraphicsWidget::advance(int phase)

This method can be reimplemented in a derived class.

asConstQGraphicsLayoutItem

Signature: [const] const QGraphicsLayoutItem ptr asConstQGraphicsLayoutItem

Description: Delivers the base class interface QGraphicsLayoutItem of QGraphicsWidget

Class QGraphicsWidget is derived from multiple base classes. This method delivers the QGraphicsLayoutItem base class aspect.

Use this version if you have a const reference.

asConstQGraphicsObject

Signature: [const] const QGraphicsObject ptr asConstQGraphicsObject

Description: Delivers the base class interface QGraphicsObject of QGraphicsWidget

Class QGraphicsWidget is derived from multiple base classes. This method delivers the QGraphicsObject base class aspect.

Use this version if you have a const reference.

asQGraphicsLayoutItem

Signature: QGraphicsLayoutItem ptr asQGraphicsLayoutItem

Description: Delivers the base class interface QGraphicsLayoutItem of QGraphicsWidget

Class QGraphicsWidget is derived from multiple base classes. This method delivers the QGraphicsLayoutItem base class aspect.

asQGraphicsObject

Signature: QGraphicsObject ptr asQGraphicsObject

Description: Delivers the base class interface QGraphicsObject of QGraphicsWidget

Class QGraphicsWidget is derived from multiple base classes. This method delivers the QGraphicsObject base class aspect.

autoFillBackground

Signature: [const] bool autoFillBackground

Description: Method bool QGraphicsWidget::autoFillBackground()

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

autoFillBackground=

Signature: void autoFillBackground= (bool enabled)

Description: Method void QGraphicsWidget::setAutoFillBackground(bool enabled)

Python specific notes:
The object exposes a writable attribute 'autoFillBackground'. This is the setter.

boundingRect

Signature: [const] QRectF boundingRect

Description: Virtual method QRectF QGraphicsWidget::boundingRect()

This method can be reimplemented in a derived class.

changeEvent

Signature: void changeEvent (QEvent ptr event)

Description: Virtual method void QGraphicsWidget::changeEvent(QEvent *event)

This method can be reimplemented in a derived class.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QGraphicsWidget::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

children

Signature: [const] QObject ptr[] children

Description: Method const QList<QObject*> &QGraphicsWidget::children()

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

childrenChanged

Signature: [signal] void childrenChanged

Description: Signal declaration for QGraphicsWidget::childrenChanged()

You can bind a procedure to this signal.

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

close

Signature: bool close

Description: Method bool QGraphicsWidget::close()

closeEvent

Signature: void closeEvent (QCloseEvent ptr event)

Description: Virtual method void QGraphicsWidget::closeEvent(QCloseEvent *event)

This method can be reimplemented in a derived class.

collidesWithItem

Signature: [const] bool collidesWithItem (const QGraphicsItem ptr other, const Qt_ItemSelectionMode mode)

Description: Virtual method bool QGraphicsWidget::collidesWithItem(const QGraphicsItem *other, Qt::ItemSelectionMode mode)

This method can be reimplemented in a derived class.

collidesWithPath

Signature: [const] bool collidesWithPath (const QPainterPath path, const Qt_ItemSelectionMode mode)

Description: Virtual method bool QGraphicsWidget::collidesWithPath(const QPainterPath &path, Qt::ItemSelectionMode mode)

This method can be reimplemented in a derived class.

contains

Signature: [const] bool contains (const QPointF point)

Description: Virtual method bool QGraphicsWidget::contains(const QPointF &point)

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QGraphicsSceneContextMenuEvent ptr event)

Description: Virtual method void QGraphicsWidget::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)

This method can be reimplemented in a derived class.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QGraphicsWidget::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QGraphicsWidget::destroyed(QObject *)

You can bind a procedure to this signal.

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

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QGraphicsWidget::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

dragEnterEvent

Signature: void dragEnterEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsWidget::dragEnterEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsWidget::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsWidget::dragMoveEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsWidget::dropEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

emit_childrenChanged

Signature: void emit_childrenChanged

Description: Emitter for signal void QGraphicsWidget::childrenChanged()

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QGraphicsWidget::destroyed(QObject *)

Call this method to emit this signal.

emit_enabledChanged

Signature: void emit_enabledChanged

Description: Emitter for signal void QGraphicsWidget::enabledChanged()

Call this method to emit this signal.

emit_geometryChanged

Signature: void emit_geometryChanged

Description: Emitter for signal void QGraphicsWidget::geometryChanged()

Call this method to emit this signal.

emit_heightChanged

Signature: void emit_heightChanged

Description: Emitter for signal void QGraphicsWidget::heightChanged()

Call this method to emit this signal.

emit_layoutChanged

Signature: void emit_layoutChanged

Description: Emitter for signal void QGraphicsWidget::layoutChanged()

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QGraphicsWidget::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_opacityChanged

Signature: void emit_opacityChanged

Description: Emitter for signal void QGraphicsWidget::opacityChanged()

Call this method to emit this signal.

emit_parentChanged

Signature: void emit_parentChanged

Description: Emitter for signal void QGraphicsWidget::parentChanged()

Call this method to emit this signal.

emit_rotationChanged

Signature: void emit_rotationChanged

Description: Emitter for signal void QGraphicsWidget::rotationChanged()

Call this method to emit this signal.

emit_scaleChanged

Signature: void emit_scaleChanged

Description: Emitter for signal void QGraphicsWidget::scaleChanged()

Call this method to emit this signal.

emit_visibleChanged

Signature: void emit_visibleChanged

Description: Emitter for signal void QGraphicsWidget::visibleChanged()

Call this method to emit this signal.

emit_widthChanged

Signature: void emit_widthChanged

Description: Emitter for signal void QGraphicsWidget::widthChanged()

Call this method to emit this signal.

emit_xChanged

Signature: void emit_xChanged

Description: Emitter for signal void QGraphicsWidget::xChanged()

Call this method to emit this signal.

emit_yChanged

Signature: void emit_yChanged

Description: Emitter for signal void QGraphicsWidget::yChanged()

Call this method to emit this signal.

emit_zChanged

Signature: void emit_zChanged

Description: Emitter for signal void QGraphicsWidget::zChanged()

Call this method to emit this signal.

enabledChanged

Signature: [signal] void enabledChanged

Description: Signal declaration for QGraphicsWidget::enabledChanged()

You can bind a procedure to this signal.

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

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QGraphicsWidget::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QGraphicsWidget::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

extension

Signature: [const] variant extension (variant variant)

Description: Virtual method QVariant QGraphicsWidget::extension(const QVariant &variant)

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsWidget::focusInEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

Description: Virtual method bool QGraphicsWidget::focusNextPrevChild(bool next)

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsWidget::focusOutEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusPolicy

Signature: [const] Qt_FocusPolicy focusPolicy

Description: Method Qt::FocusPolicy QGraphicsWidget::focusPolicy()

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

focusPolicy=

Signature: void focusPolicy= (const Qt_FocusPolicy policy)

Description: Method void QGraphicsWidget::setFocusPolicy(Qt::FocusPolicy policy)

Python specific notes:
The object exposes a writable attribute 'focusPolicy'. This is the setter.

focusWidget

Signature: [const] QGraphicsWidget ptr focusWidget

Description: Method QGraphicsWidget *QGraphicsWidget::focusWidget()

font

Signature: [const] QFont font

Description: Method QFont QGraphicsWidget::font()

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

font=

Signature: void font= (const QFont font)

Description: Method void QGraphicsWidget::setFont(const QFont &font)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

geometry=

Signature: void geometry= (const QRectF rect)

Description: Method void QGraphicsWidget::setGeometry(const QRectF &rect)

This is a reimplementation of QGraphicsLayoutItem::setGeometry

Python specific notes:
The object exposes a writable attribute 'geometry'. This is the setter.

geometryChanged

Signature: [signal] void geometryChanged

Description: Signal declaration for QGraphicsWidget::geometryChanged()

You can bind a procedure to this signal.

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

getContentsMargins

Signature: [const] void getContentsMargins (double ptr left, double ptr top, double ptr right, double ptr bottom)

Description: Virtual method void QGraphicsWidget::getContentsMargins(double *left, double *top, double *right, double *bottom)

This method can be reimplemented in a derived class.

getWindowFrameMargins

Signature: [const] void getWindowFrameMargins (double ptr left, double ptr top, double ptr right, double ptr bottom)

Description: Method void QGraphicsWidget::getWindowFrameMargins(double *left, double *top, double *right, double *bottom)

grabKeyboardEvent

Signature: void grabKeyboardEvent (QEvent ptr event)

Description: Virtual method void QGraphicsWidget::grabKeyboardEvent(QEvent *event)

This method can be reimplemented in a derived class.

grabMouseEvent

Signature: void grabMouseEvent (QEvent ptr event)

Description: Virtual method void QGraphicsWidget::grabMouseEvent(QEvent *event)

This method can be reimplemented in a derived class.

grabShortcut

Signature: int grabShortcut (const QKeySequence sequence, const Qt_ShortcutContext context = Qt::WindowShortcut)

Description: Method int QGraphicsWidget::grabShortcut(const QKeySequence &sequence, Qt::ShortcutContext context)

heightChanged

Signature: [signal] void heightChanged

Description: Signal declaration for QGraphicsWidget::heightChanged()

You can bind a procedure to this signal.

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

hideEvent

Signature: void hideEvent (QHideEvent ptr event)

Description: Virtual method void QGraphicsWidget::hideEvent(QHideEvent *event)

This method can be reimplemented in a derived class.

hoverEnterEvent

Signature: void hoverEnterEvent (QGraphicsSceneHoverEvent ptr event)

Description: Virtual method void QGraphicsWidget::hoverEnterEvent(QGraphicsSceneHoverEvent *event)

This method can be reimplemented in a derived class.

hoverLeaveEvent

Signature: void hoverLeaveEvent (QGraphicsSceneHoverEvent ptr event)

Description: Virtual method void QGraphicsWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)

This method can be reimplemented in a derived class.

hoverMoveEvent

Signature: void hoverMoveEvent (QGraphicsSceneHoverEvent ptr event)

Description: Virtual method void QGraphicsWidget::hoverMoveEvent(QGraphicsSceneHoverEvent *event)

This method can be reimplemented in a derived class.

initStyleOption

Signature: [const] void initStyleOption (QStyleOption ptr option)

Description: Virtual method void QGraphicsWidget::initStyleOption(QStyleOption *option)

This method can be reimplemented in a derived class.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr event)

Description: Virtual method void QGraphicsWidget::inputMethodEvent(QInputMethodEvent *event)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery query)

Description: Virtual method QVariant QGraphicsWidget::inputMethodQuery(Qt::InputMethodQuery query)

This method can be reimplemented in a derived class.

insertAction

Signature: void insertAction (QAction ptr before, QAction ptr action)

Description: Method void QGraphicsWidget::insertAction(QAction *before, QAction *action)

insertActions

Signature: void insertActions (QAction ptr before, QAction ptr[] actions)

Description: Method void QGraphicsWidget::insertActions(QAction *before, QList<QAction*> actions)

isActiveWindow?

Signature: [const] bool isActiveWindow?

Description: Method bool QGraphicsWidget::isActiveWindow()

isObscuredBy

Signature: [const] bool isObscuredBy (const QGraphicsItem ptr item)

Description: Virtual method bool QGraphicsWidget::isObscuredBy(const QGraphicsItem *item)

This method can be reimplemented in a derived class.

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QGraphicsWidget::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

itemChange

Signature: variant itemChange (const QGraphicsItem_GraphicsItemChange change, variant value)

Description: Virtual method QVariant QGraphicsWidget::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value)

This method can be reimplemented in a derived class.

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsWidget::keyPressEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsWidget::keyReleaseEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

layout

Signature: [const] QGraphicsLayout ptr layout

Description: Method QGraphicsLayout *QGraphicsWidget::layout()

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

layout=

Signature: void layout= (QGraphicsLayout ptr layout)

Description: Method void QGraphicsWidget::setLayout(QGraphicsLayout *layout)

Python specific notes:
The object exposes a writable attribute 'layout'. This is the setter.

layoutChanged

Signature: [signal] void layoutChanged

Description: Signal declaration for QGraphicsWidget::layoutChanged()

You can bind a procedure to this signal.

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

layoutDirection

Signature: [const] Qt_LayoutDirection layoutDirection

Description: Method Qt::LayoutDirection QGraphicsWidget::layoutDirection()

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

layoutDirection=

Signature: void layoutDirection= (const Qt_LayoutDirection direction)

Description: Method void QGraphicsWidget::setLayoutDirection(Qt::LayoutDirection direction)

Python specific notes:
The object exposes a writable attribute 'layoutDirection'. This is the setter.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsWidget::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

moveEvent

Signature: void moveEvent (QGraphicsSceneMoveEvent ptr event)

Description: Virtual method void QGraphicsWidget::moveEvent(QGraphicsSceneMoveEvent *event)

This method can be reimplemented in a derived class.

new

Signature: [static] new QGraphicsWidget new (QGraphicsItem ptr parent = nullptr, Qt_QFlags_WindowType wFlags = Qt::WindowFlags())

Description: Constructor QGraphicsWidget::QGraphicsWidget(QGraphicsItem *parent, QFlags<Qt::WindowType> wFlags)

This method creates an object of class QGraphicsWidget.

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

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QGraphicsWidget::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

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

opacityChanged

Signature: [signal] void opacityChanged

Description: Signal declaration for QGraphicsWidget::opacityChanged()

You can bind a procedure to this signal.

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

opaqueArea

Signature: [const] QPainterPath opaqueArea

Description: Virtual method QPainterPath QGraphicsWidget::opaqueArea()

This method can be reimplemented in a derived class.

paint

Signature: void paint (QPainter ptr painter, const QStyleOptionGraphicsItem ptr option, QWidget ptr widget)

Description: Virtual method void QGraphicsWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

This method can be reimplemented in a derived class.

paintWindowFrame

Signature: void paintWindowFrame (QPainter ptr painter, const QStyleOptionGraphicsItem ptr option, QWidget ptr widget)

Description: Virtual method void QGraphicsWidget::paintWindowFrame(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

This method can be reimplemented in a derived class.

palette

Signature: [const] QPalette palette

Description: Method QPalette QGraphicsWidget::palette()

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

palette=

Signature: void palette= (const QPalette palette)

Description: Method void QGraphicsWidget::setPalette(const QPalette &palette)

Python specific notes:
The object exposes a writable attribute 'palette'. This is the setter.

parentChanged

Signature: [signal] void parentChanged

Description: Signal declaration for QGraphicsWidget::parentChanged()

You can bind a procedure to this signal.

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

polishEvent

Signature: void polishEvent

Description: Virtual method void QGraphicsWidget::polishEvent()

This method can be reimplemented in a derived class.

prepareGeometryChange

Signature: void prepareGeometryChange

Description: Method void QGraphicsWidget::prepareGeometryChange()

This method is protected and can only be called from inside a derived class.

propertyChange

Signature: variant propertyChange (string propertyName, variant value)

Description: Virtual method QVariant QGraphicsWidget::propertyChange(const QString &propertyName, const QVariant &value)

This method can be reimplemented in a derived class.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QGraphicsWidget::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

rect

Signature: [const] QRectF rect

Description: Method QRectF QGraphicsWidget::rect()

releaseShortcut

Signature: void releaseShortcut (int id)

Description: Method void QGraphicsWidget::releaseShortcut(int id)

removeAction

Signature: void removeAction (QAction ptr action)

Description: Method void QGraphicsWidget::removeAction(QAction *action)

removeFromIndex

Signature: void removeFromIndex

Description: Method void QGraphicsWidget::removeFromIndex()

This method is protected and can only be called from inside a derived class.

resize

(1) Signature: void resize (const QSizeF size)

Description: Method void QGraphicsWidget::resize(const QSizeF &size)

(2) Signature: void resize (double w, double h)

Description: Method void QGraphicsWidget::resize(double w, double h)

resizeEvent

Signature: void resizeEvent (QGraphicsSceneResizeEvent ptr event)

Description: Virtual method void QGraphicsWidget::resizeEvent(QGraphicsSceneResizeEvent *event)

This method can be reimplemented in a derived class.

rotationChanged

Signature: [signal] void rotationChanged

Description: Signal declaration for QGraphicsWidget::rotationChanged()

You can bind a procedure to this signal.

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

scaleChanged

Signature: [signal] void scaleChanged

Description: Signal declaration for QGraphicsWidget::scaleChanged()

You can bind a procedure to this signal.

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

sceneEvent

Signature: bool sceneEvent (QEvent ptr event)

Description: Virtual method bool QGraphicsWidget::sceneEvent(QEvent *event)

This method can be reimplemented in a derived class.

sceneEventFilter

Signature: bool sceneEventFilter (QGraphicsItem ptr watched, QEvent ptr event)

Description: Virtual method bool QGraphicsWidget::sceneEventFilter(QGraphicsItem *watched, QEvent *event)

This method can be reimplemented in a derived class.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QGraphicsWidget::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QGraphicsWidget::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

setAttribute

Signature: void setAttribute (const Qt_WidgetAttribute attribute, bool on = true)

Description: Method void QGraphicsWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)

setAutoFillBackground

Signature: void setAutoFillBackground (bool enabled)

Description: Method void QGraphicsWidget::setAutoFillBackground(bool enabled)

Python specific notes:
The object exposes a writable attribute 'autoFillBackground'. This is the setter.

setContentsMargins

Signature: void setContentsMargins (double left, double top, double right, double bottom)

Description: Method void QGraphicsWidget::setContentsMargins(double left, double top, double right, double bottom)

setExtension

Signature: void setExtension (unsigned int extension, variant variant)

Description: Virtual method void QGraphicsWidget::setExtension(QGraphicsItem::Extension extension, const QVariant &variant)

This method can be reimplemented in a derived class.

setFocusPolicy

Signature: void setFocusPolicy (const Qt_FocusPolicy policy)

Description: Method void QGraphicsWidget::setFocusPolicy(Qt::FocusPolicy policy)

Python specific notes:
The object exposes a writable attribute 'focusPolicy'. This is the setter.

setFont

Signature: void setFont (const QFont font)

Description: Method void QGraphicsWidget::setFont(const QFont &font)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

setGeometry

Signature: void setGeometry (const QRectF rect)

Description: Virtual method void QGraphicsWidget::setGeometry(const QRectF &rect)

This method can be reimplemented in a derived class.

setGraphicsItem

Signature: void setGraphicsItem (QGraphicsItem ptr item)

Description: Method void QGraphicsWidget::setGraphicsItem(QGraphicsItem *item)

This method is protected and can only be called from inside a derived class.

setLayout

Signature: void setLayout (QGraphicsLayout ptr layout)

Description: Method void QGraphicsWidget::setLayout(QGraphicsLayout *layout)

Python specific notes:
The object exposes a writable attribute 'layout'. This is the setter.

setLayoutDirection

Signature: void setLayoutDirection (const Qt_LayoutDirection direction)

Description: Method void QGraphicsWidget::setLayoutDirection(Qt::LayoutDirection direction)

Python specific notes:
The object exposes a writable attribute 'layoutDirection'. This is the setter.

setOwnedByLayout

Signature: void setOwnedByLayout (bool ownedByLayout)

Description: Method void QGraphicsWidget::setOwnedByLayout(bool ownedByLayout)

This method is protected and can only be called from inside a derived class.

setPalette

Signature: void setPalette (const QPalette palette)

Description: Method void QGraphicsWidget::setPalette(const QPalette &palette)

Python specific notes:
The object exposes a writable attribute 'palette'. This is the setter.

setShortcutAutoRepeat

Signature: void setShortcutAutoRepeat (int id, bool enabled = true)

Description: Method void QGraphicsWidget::setShortcutAutoRepeat(int id, bool enabled)

setShortcutEnabled

Signature: void setShortcutEnabled (int id, bool enabled = true)

Description: Method void QGraphicsWidget::setShortcutEnabled(int id, bool enabled)

setStyle

Signature: void setStyle (QStyle ptr style)

Description: Method void QGraphicsWidget::setStyle(QStyle *style)

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

setTabOrder

Signature: [static] void setTabOrder (QGraphicsWidget ptr first, QGraphicsWidget ptr second)

Description: Static method void QGraphicsWidget::setTabOrder(QGraphicsWidget *first, QGraphicsWidget *second)

This method is static and can be called without an instance.

setWindowFlags

Signature: void setWindowFlags (Qt_QFlags_WindowType wFlags)

Description: Method void QGraphicsWidget::setWindowFlags(QFlags<Qt::WindowType> wFlags)

Python specific notes:
The object exposes a writable attribute 'windowFlags'. This is the setter.

setWindowFrameMargins

Signature: void setWindowFrameMargins (double left, double top, double right, double bottom)

Description: Method void QGraphicsWidget::setWindowFrameMargins(double left, double top, double right, double bottom)

setWindowTitle

Signature: void setWindowTitle (string title)

Description: Method void QGraphicsWidget::setWindowTitle(const QString &title)

Python specific notes:
The object exposes a writable attribute 'windowTitle'. This is the setter.

shape

Signature: [const] QPainterPath shape

Description: Virtual method QPainterPath QGraphicsWidget::shape()

This method can be reimplemented in a derived class.

showEvent

Signature: void showEvent (QShowEvent ptr event)

Description: Virtual method void QGraphicsWidget::showEvent(QShowEvent *event)

This method can be reimplemented in a derived class.

size

Signature: [const] QSizeF size

Description: Method QSizeF QGraphicsWidget::size()

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

sizeHint

Signature: [const] QSizeF sizeHint (const Qt_SizeHint which, const QSizeF constraint)

Description: Virtual method QSizeF QGraphicsWidget::sizeHint(Qt::SizeHint which, const QSizeF &constraint)

This method can be reimplemented in a derived class.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

style

Signature: [const] QStyle ptr style

Description: Method QStyle *QGraphicsWidget::style()

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

style=

Signature: void style= (QStyle ptr style)

Description: Method void QGraphicsWidget::setStyle(QStyle *style)

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

supportsExtension

Signature: [const] bool supportsExtension (unsigned int extension)

Description: Virtual method bool QGraphicsWidget::supportsExtension(QGraphicsItem::Extension extension)

This method can be reimplemented in a derived class.

testAttribute

Signature: [const] bool testAttribute (const Qt_WidgetAttribute attribute)

Description: Method bool QGraphicsWidget::testAttribute(Qt::WidgetAttribute attribute)

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QGraphicsWidget::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QGraphicsWidget::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QGraphicsWidget::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

type

Signature: [const] int type

Description: Virtual method int QGraphicsWidget::type()

This method can be reimplemented in a derived class.

ungrabKeyboardEvent

Signature: void ungrabKeyboardEvent (QEvent ptr event)

Description: Virtual method void QGraphicsWidget::ungrabKeyboardEvent(QEvent *event)

This method can be reimplemented in a derived class.

ungrabMouseEvent

Signature: void ungrabMouseEvent (QEvent ptr event)

Description: Virtual method void QGraphicsWidget::ungrabMouseEvent(QEvent *event)

This method can be reimplemented in a derived class.

unsetLayoutDirection

Signature: void unsetLayoutDirection

Description: Method void QGraphicsWidget::unsetLayoutDirection()

unsetWindowFrameMargins

Signature: void unsetWindowFrameMargins

Description: Method void QGraphicsWidget::unsetWindowFrameMargins()

updateGeometry

Signature: void updateGeometry

Description: Virtual method void QGraphicsWidget::updateGeometry()

This method can be reimplemented in a derived class.

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QGraphicsWidget::updateMicroFocus()

This method is protected and can only be called from inside a derived class.

visibleChanged

Signature: [signal] void visibleChanged

Description: Signal declaration for QGraphicsWidget::visibleChanged()

You can bind a procedure to this signal.

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

wheelEvent

Signature: void wheelEvent (QGraphicsSceneWheelEvent ptr event)

Description: Virtual method void QGraphicsWidget::wheelEvent(QGraphicsSceneWheelEvent *event)

This method can be reimplemented in a derived class.

widthChanged

Signature: [signal] void widthChanged

Description: Signal declaration for QGraphicsWidget::widthChanged()

You can bind a procedure to this signal.

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

windowFlags

Signature: [const] Qt_QFlags_WindowType windowFlags

Description: Method QFlags<Qt::WindowType> QGraphicsWidget::windowFlags()

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

windowFlags=

Signature: void windowFlags= (Qt_QFlags_WindowType wFlags)

Description: Method void QGraphicsWidget::setWindowFlags(QFlags<Qt::WindowType> wFlags)

Python specific notes:
The object exposes a writable attribute 'windowFlags'. This is the setter.

windowFrameEvent

Signature: bool windowFrameEvent (QEvent ptr e)

Description: Virtual method bool QGraphicsWidget::windowFrameEvent(QEvent *e)

This method can be reimplemented in a derived class.

windowFrameGeometry

Signature: [const] QRectF windowFrameGeometry

Description: Method QRectF QGraphicsWidget::windowFrameGeometry()

windowFrameRect

Signature: [const] QRectF windowFrameRect

Description: Method QRectF QGraphicsWidget::windowFrameRect()

windowFrameSectionAt

Signature: [const] Qt_WindowFrameSection windowFrameSectionAt (const QPointF pos)

Description: Virtual method Qt::WindowFrameSection QGraphicsWidget::windowFrameSectionAt(const QPointF &pos)

This method can be reimplemented in a derived class.

windowTitle

Signature: [const] string windowTitle

Description: Method QString QGraphicsWidget::windowTitle()

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

windowTitle=

Signature: void windowTitle= (string title)

Description: Method void QGraphicsWidget::setWindowTitle(const QString &title)

Python specific notes:
The object exposes a writable attribute 'windowTitle'. This is the setter.

windowType

Signature: [const] Qt_WindowType windowType

Description: Method Qt::WindowType QGraphicsWidget::windowType()

xChanged

Signature: [signal] void xChanged

Description: Signal declaration for QGraphicsWidget::xChanged()

You can bind a procedure to this signal.

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

yChanged

Signature: [signal] void yChanged

Description: Signal declaration for QGraphicsWidget::yChanged()

You can bind a procedure to this signal.

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

zChanged

Signature: [signal] void zChanged

Description: Signal declaration for QGraphicsWidget::zChanged()

You can bind a procedure to this signal.

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