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

API reference - Class QTabWidget

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QTabWidget

Class hierarchy: QTabWidget » QWidget » QObject

Sub-classes: TabPosition, QFlags_TabPosition, TabShape, QFlags_TabShape

Public constructors

new QTabWidgetnew(QWidget ptr parent = nullptr)Constructor QTabWidget::QTabWidget(QWidget *parent)

Public methods

[const]QTabWidget 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.
intaddTab(QWidget ptr widget,
string arg2)
Method int QTabWidget::addTab(QWidget *widget, const QString &)
intaddTab(QWidget ptr widget,
const QIcon icon,
string label)
Method int QTabWidget::addTab(QWidget *widget, const QIcon &icon, const QString &label)
voidclearMethod void QTabWidget::clear()
[const]QWidget ptrcornerWidget(const Qt_Corner corner = Qt::TopRightCorner)Method QWidget *QTabWidget::cornerWidget(Qt::Corner corner)
[const]intcountMethod int QTabWidget::count()
[signal]voidcurrentChanged(int index)Signal declaration for QTabWidget::currentChanged(int index)
[const]intcurrentIndexMethod int QTabWidget::currentIndex()
voidcurrentIndex=(int index)Method void QTabWidget::setCurrentIndex(int index)
[const]QWidget ptrcurrentWidgetMethod QWidget *QTabWidget::currentWidget()
voidcurrentWidget=(QWidget ptr widget)Method void QTabWidget::setCurrentWidget(QWidget *widget)
[signal]voidcustomContextMenuRequested(const QPoint pos)Signal declaration for QTabWidget::customContextMenuRequested(const QPoint &pos)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QTabWidget::destroyed(QObject *)
[const]booldocumentModeMethod bool QTabWidget::documentMode()
voiddocumentMode=(bool set)Method void QTabWidget::setDocumentMode(bool set)
[const]Qt_TextElideModeelideModeMethod Qt::TextElideMode QTabWidget::elideMode()
voidelideMode=(const Qt_TextElideMode arg1)Method void QTabWidget::setElideMode(Qt::TextElideMode)
voidemit_currentChanged(int index)Emitter for signal void QTabWidget::currentChanged(int index)
voidemit_customContextMenuRequested(const QPoint pos)Emitter for signal void QTabWidget::customContextMenuRequested(const QPoint &pos)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QTabWidget::destroyed(QObject *)
voidemit_objectNameChanged(string objectName)Emitter for signal void QTabWidget::objectNameChanged(const QString &objectName)
voidemit_tabBarClicked(int index)Emitter for signal void QTabWidget::tabBarClicked(int index)
voidemit_tabBarDoubleClicked(int index)Emitter for signal void QTabWidget::tabBarDoubleClicked(int index)
voidemit_tabCloseRequested(int index)Emitter for signal void QTabWidget::tabCloseRequested(int index)
voidemit_windowIconChanged(const QIcon icon)Emitter for signal void QTabWidget::windowIconChanged(const QIcon &icon)
voidemit_windowIconTextChanged(string iconText)Emitter for signal void QTabWidget::windowIconTextChanged(const QString &iconText)
voidemit_windowTitleChanged(string title)Emitter for signal void QTabWidget::windowTitleChanged(const QString &title)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QTabWidget::eventFilter(QObject *watched, QEvent *event)
[const]boolhasHeightForWidthVirtual method bool QTabWidget::hasHeightForWidth()
[const]intheightForWidth(int width)Virtual method int QTabWidget::heightForWidth(int width)
[const]QSizeiconSizeMethod QSize QTabWidget::iconSize()
voidiconSize=(const QSize size)Method void QTabWidget::setIconSize(const QSize &size)
[const]intindexOf(QWidget ptr widget)Method int QTabWidget::indexOf(QWidget *widget)
[const]variantinputMethodQuery(const Qt_InputMethodQuery arg1)Virtual method QVariant QTabWidget::inputMethodQuery(Qt::InputMethodQuery)
intinsertTab(int index,
QWidget ptr widget,
string arg3)
Method int QTabWidget::insertTab(int index, QWidget *widget, const QString &)
intinsertTab(int index,
QWidget ptr widget,
const QIcon icon,
string label)
Method int QTabWidget::insertTab(int index, QWidget *widget, const QIcon &icon, const QString &label)
[const]boolisMovable?Method bool QTabWidget::isMovable()
[const]boolisTabEnabled?(int index)Method bool QTabWidget::isTabEnabled(int index)
[const]QSizeminimumSizeHintVirtual method QSize QTabWidget::minimumSizeHint()
[const]boolmovableMethod bool QTabWidget::isMovable()
voidmovable=(bool movable)Method void QTabWidget::setMovable(bool movable)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QTabWidget::objectNameChanged(const QString &objectName)
[const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine *QTabWidget::paintEngine()
voidremoveTab(int index)Method void QTabWidget::removeTab(int index)
voidsetCornerWidget(QWidget ptr w,
const Qt_Corner corner = Qt::TopRightCorner)
Method void QTabWidget::setCornerWidget(QWidget *w, Qt::Corner corner)
voidsetCurrentIndex(int index)Method void QTabWidget::setCurrentIndex(int index)
voidsetCurrentWidget(QWidget ptr widget)Method void QTabWidget::setCurrentWidget(QWidget *widget)
voidsetDocumentMode(bool set)Method void QTabWidget::setDocumentMode(bool set)
voidsetElideMode(const Qt_TextElideMode arg1)Method void QTabWidget::setElideMode(Qt::TextElideMode)
voidsetIconSize(const QSize size)Method void QTabWidget::setIconSize(const QSize &size)
voidsetMovable(bool movable)Method void QTabWidget::setMovable(bool movable)
voidsetTabBarAutoHide(bool enabled)Method void QTabWidget::setTabBarAutoHide(bool enabled)
voidsetTabEnabled(int index,
bool arg2)
Method void QTabWidget::setTabEnabled(int index, bool)
voidsetTabIcon(int index,
const QIcon icon)
Method void QTabWidget::setTabIcon(int index, const QIcon &icon)
voidsetTabPosition(const QTabWidget_TabPosition arg1)Method void QTabWidget::setTabPosition(QTabWidget::TabPosition)
voidsetTabShape(const QTabWidget_TabShape s)Method void QTabWidget::setTabShape(QTabWidget::TabShape s)
voidsetTabText(int index,
string arg2)
Method void QTabWidget::setTabText(int index, const QString &)
voidsetTabToolTip(int index,
string tip)
Method void QTabWidget::setTabToolTip(int index, const QString &tip)
voidsetTabWhatsThis(int index,
string text)
Method void QTabWidget::setTabWhatsThis(int index, const QString &text)
voidsetTabsClosable(bool closeable)Method void QTabWidget::setTabsClosable(bool closeable)
voidsetUsesScrollButtons(bool useButtons)Method void QTabWidget::setUsesScrollButtons(bool useButtons)
voidsetVisible(bool visible)Virtual method void QTabWidget::setVisible(bool visible)
[const]QSizesizeHintVirtual method QSize QTabWidget::sizeHint()
[const]QTabBar ptrtabBarMethod QTabBar *QTabWidget::tabBar()
[const]booltabBarAutoHideMethod bool QTabWidget::tabBarAutoHide()
voidtabBarAutoHide=(bool enabled)Method void QTabWidget::setTabBarAutoHide(bool enabled)
[signal]voidtabBarClicked(int index)Signal declaration for QTabWidget::tabBarClicked(int index)
[signal]voidtabBarDoubleClicked(int index)Signal declaration for QTabWidget::tabBarDoubleClicked(int index)
[signal]voidtabCloseRequested(int index)Signal declaration for QTabWidget::tabCloseRequested(int index)
[const]QIcontabIcon(int index)Method QIcon QTabWidget::tabIcon(int index)
[const]QTabWidget_TabPositiontabPositionMethod QTabWidget::TabPosition QTabWidget::tabPosition()
voidtabPosition=(const QTabWidget_TabPosition arg1)Method void QTabWidget::setTabPosition(QTabWidget::TabPosition)
[const]QTabWidget_TabShapetabShapeMethod QTabWidget::TabShape QTabWidget::tabShape()
voidtabShape=(const QTabWidget_TabShape s)Method void QTabWidget::setTabShape(QTabWidget::TabShape s)
[const]stringtabText(int index)Method QString QTabWidget::tabText(int index)
[const]stringtabToolTip(int index)Method QString QTabWidget::tabToolTip(int index)
[const]stringtabWhatsThis(int index)Method QString QTabWidget::tabWhatsThis(int index)
[const]booltabsClosableMethod bool QTabWidget::tabsClosable()
voidtabsClosable=(bool closeable)Method void QTabWidget::setTabsClosable(bool closeable)
[const]boolusesScrollButtonsMethod bool QTabWidget::usesScrollButtons()
voidusesScrollButtons=(bool useButtons)Method void QTabWidget::setUsesScrollButtons(bool useButtons)
[const]QWidget ptrwidget(int index)Method QWidget *QTabWidget::widget(int index)
[signal]voidwindowIconChanged(const QIcon icon)Signal declaration for QTabWidget::windowIconChanged(const QIcon &icon)
[signal]voidwindowIconTextChanged(string iconText)Signal declaration for QTabWidget::windowIconTextChanged(const QString &iconText)
[signal]voidwindowTitleChanged(string title)Signal declaration for QTabWidget::windowTitleChanged(const QString &title)

Public static methods and constants

[static,const]QTabWidget_TabPositionEastEnum constant QTabWidget::East
[static,const]QTabWidget_TabPositionNorthEnum constant QTabWidget::North
[static,const]QTabWidget_TabShapeRoundedEnum constant QTabWidget::Rounded
[static,const]QTabWidget_TabPositionSouthEnum constant QTabWidget::South
[static,const]QTabWidget_TabShapeTriangularEnum constant QTabWidget::Triangular
[static,const]QTabWidget_TabPositionWestEnum constant QTabWidget::West
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QTabWidget::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QTabWidget::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr event)Virtual method void QTabWidget::actionEvent(QActionEvent *event)
voidchangeEvent(QEvent ptr arg1)Virtual method void QTabWidget::changeEvent(QEvent *)
voidchildEvent(QChildEvent ptr event)Virtual method void QTabWidget::childEvent(QChildEvent *event)
voidcloseEvent(QCloseEvent ptr event)Virtual method void QTabWidget::closeEvent(QCloseEvent *event)
voidcontextMenuEvent(QContextMenuEvent ptr event)Virtual method void QTabWidget::contextMenuEvent(QContextMenuEvent *event)
voidcreate(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QTabWidget::create(WId, bool initializeWindow, bool destroyOldWindow)
voidcustomEvent(QEvent ptr event)Virtual method void QTabWidget::customEvent(QEvent *event)
voiddestroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QTabWidget::destroy(bool destroyWindow, bool destroySubWindows)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QTabWidget::disconnectNotify(const QMetaMethod &signal)
voiddragEnterEvent(QDragEnterEvent ptr event)Virtual method void QTabWidget::dragEnterEvent(QDragEnterEvent *event)
voiddragLeaveEvent(QDragLeaveEvent ptr event)Virtual method void QTabWidget::dragLeaveEvent(QDragLeaveEvent *event)
voiddragMoveEvent(QDragMoveEvent ptr event)Virtual method void QTabWidget::dragMoveEvent(QDragMoveEvent *event)
voiddropEvent(QDropEvent ptr event)Virtual method void QTabWidget::dropEvent(QDropEvent *event)
voidenterEvent(QEvent ptr event)Virtual method void QTabWidget::enterEvent(QEvent *event)
boolevent(QEvent ptr arg1)Virtual method bool QTabWidget::event(QEvent *)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QTabWidget::focusInEvent(QFocusEvent *event)
boolfocusNextChildMethod bool QTabWidget::focusNextChild()
boolfocusNextPrevChild(bool next)Virtual method bool QTabWidget::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QTabWidget::focusOutEvent(QFocusEvent *event)
boolfocusPreviousChildMethod bool QTabWidget::focusPreviousChild()
voidhideEvent(QHideEvent ptr event)Virtual method void QTabWidget::hideEvent(QHideEvent *event)
[const]voidinitPainter(QPainter ptr painter)Virtual method void QTabWidget::initPainter(QPainter *painter)
[const]voidinitStyleOption(QStyleOptionTabWidgetFrame ptr option)Method void QTabWidget::initStyleOption(QStyleOptionTabWidgetFrame *option)
voidinputMethodEvent(QInputMethodEvent ptr arg1)Virtual method void QTabWidget::inputMethodEvent(QInputMethodEvent *)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QTabWidget::isSignalConnected(const QMetaMethod &signal)
voidkeyPressEvent(QKeyEvent ptr arg1)Virtual method void QTabWidget::keyPressEvent(QKeyEvent *)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QTabWidget::keyReleaseEvent(QKeyEvent *event)
voidleaveEvent(QEvent ptr event)Virtual method void QTabWidget::leaveEvent(QEvent *event)
[const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QTabWidget::metric(QPaintDevice::PaintDeviceMetric)
voidmouseDoubleClickEvent(QMouseEvent ptr event)Virtual method void QTabWidget::mouseDoubleClickEvent(QMouseEvent *event)
voidmouseMoveEvent(QMouseEvent ptr event)Virtual method void QTabWidget::mouseMoveEvent(QMouseEvent *event)
voidmousePressEvent(QMouseEvent ptr event)Virtual method void QTabWidget::mousePressEvent(QMouseEvent *event)
voidmouseReleaseEvent(QMouseEvent ptr event)Virtual method void QTabWidget::mouseReleaseEvent(QMouseEvent *event)
voidmoveEvent(QMoveEvent ptr event)Virtual method void QTabWidget::moveEvent(QMoveEvent *event)
boolnativeEvent(bytes eventType,
void * message,
long ptr result)
Virtual method bool QTabWidget::nativeEvent(const QByteArray &eventType, void *message, long int *result)
voidpaintEvent(QPaintEvent ptr arg1)Virtual method void QTabWidget::paintEvent(QPaintEvent *)
voidqt_create(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QTabWidget::create(WId, bool initializeWindow, bool destroyOldWindow)
voidqt_destroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QTabWidget::destroy(bool destroyWindow, bool destroySubWindows)
[const]intreceivers(string signal)Method int QTabWidget::receivers(const char *signal)
[const]QPaintDevice ptrredirected(QPoint ptr offset)Virtual method QPaintDevice *QTabWidget::redirected(QPoint *offset)
voidresizeEvent(QResizeEvent ptr arg1)Virtual method void QTabWidget::resizeEvent(QResizeEvent *)
[const]QObject ptrsenderMethod QObject *QTabWidget::sender()
[const]intsenderSignalIndexMethod int QTabWidget::senderSignalIndex()
voidsetTabBar(QTabBar ptr arg1)Method void QTabWidget::setTabBar(QTabBar *)
[const]QPainter ptrsharedPainterVirtual method QPainter *QTabWidget::sharedPainter()
voidshowEvent(QShowEvent ptr arg1)Virtual method void QTabWidget::showEvent(QShowEvent *)
voidtabInserted(int index)Virtual method void QTabWidget::tabInserted(int index)
voidtabRemoved(int index)Virtual method void QTabWidget::tabRemoved(int index)
voidtabletEvent(QTabletEvent ptr event)Virtual method void QTabWidget::tabletEvent(QTabletEvent *event)
voidtimerEvent(QTimerEvent ptr event)Virtual method void QTabWidget::timerEvent(QTimerEvent *event)
voidupdateMicroFocusMethod void QTabWidget::updateMicroFocus()
voidwheelEvent(QWheelEvent ptr event)Virtual method void QTabWidget::wheelEvent(QWheelEvent *event)

Detailed description

East

Signature: [static,const] QTabWidget_TabPosition East

Description: Enum constant QTabWidget::East

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

North

Signature: [static,const] QTabWidget_TabPosition North

Description: Enum constant QTabWidget::North

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

Rounded

Signature: [static,const] QTabWidget_TabShape Rounded

Description: Enum constant QTabWidget::Rounded

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

South

Signature: [static,const] QTabWidget_TabPosition South

Description: Enum constant QTabWidget::South

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

Triangular

Signature: [static,const] QTabWidget_TabShape Triangular

Description: Enum constant QTabWidget::Triangular

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

West

Signature: [static,const] QTabWidget_TabPosition West

Description: Enum constant QTabWidget::West

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

_const_cast

Signature: [const] QTabWidget 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.

actionEvent

Signature: void actionEvent (QActionEvent ptr event)

Description: Virtual method void QTabWidget::actionEvent(QActionEvent *event)

This method can be reimplemented in a derived class.

addTab

(1) Signature: int addTab (QWidget ptr widget, string arg2)

Description: Method int QTabWidget::addTab(QWidget *widget, const QString &)

(2) Signature: int addTab (QWidget ptr widget, const QIcon icon, string label)

Description: Method int QTabWidget::addTab(QWidget *widget, const QIcon &icon, const QString &label)

changeEvent

Signature: void changeEvent (QEvent ptr arg1)

Description: Virtual method void QTabWidget::changeEvent(QEvent *)

This method can be reimplemented in a derived class.

childEvent

Signature: void childEvent (QChildEvent ptr event)

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

This method can be reimplemented in a derived class.

clear

Signature: void clear

Description: Method void QTabWidget::clear()

closeEvent

Signature: void closeEvent (QCloseEvent ptr event)

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

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QContextMenuEvent ptr event)

Description: Virtual method void QTabWidget::contextMenuEvent(QContextMenuEvent *event)

This method can be reimplemented in a derived class.

cornerWidget

Signature: [const] QWidget ptr cornerWidget (const Qt_Corner corner = Qt::TopRightCorner)

Description: Method QWidget *QTabWidget::cornerWidget(Qt::Corner corner)

count

Signature: [const] int count

Description: Method int QTabWidget::count()

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

create

Signature: void create (unsigned long long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QTabWidget::create(WId, bool initializeWindow, bool destroyOldWindow)

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

currentChanged

Signature: [signal] void currentChanged (int index)

Description: Signal declaration for QTabWidget::currentChanged(int index)

You can bind a procedure to this signal.

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

currentIndex

Signature: [const] int currentIndex

Description: Method int QTabWidget::currentIndex()

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

currentIndex=

Signature: void currentIndex= (int index)

Description: Method void QTabWidget::setCurrentIndex(int index)

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

currentWidget

Signature: [const] QWidget ptr currentWidget

Description: Method QWidget *QTabWidget::currentWidget()

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

currentWidget=

Signature: void currentWidget= (QWidget ptr widget)

Description: Method void QTabWidget::setCurrentWidget(QWidget *widget)

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

customContextMenuRequested

Signature: [signal] void customContextMenuRequested (const QPoint pos)

Description: Signal declaration for QTabWidget::customContextMenuRequested(const QPoint &pos)

You can bind a procedure to this signal.

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

customEvent

Signature: void customEvent (QEvent ptr event)

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

This method can be reimplemented in a derived class.

destroy

Signature: void destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QTabWidget::destroy(bool destroyWindow, bool destroySubWindows)

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

destroyed

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

Description: Signal declaration for QTabWidget::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 QTabWidget::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

documentMode

Signature: [const] bool documentMode

Description: Method bool QTabWidget::documentMode()

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

documentMode=

Signature: void documentMode= (bool set)

Description: Method void QTabWidget::setDocumentMode(bool set)

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

dragEnterEvent

Signature: void dragEnterEvent (QDragEnterEvent ptr event)

Description: Virtual method void QTabWidget::dragEnterEvent(QDragEnterEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QDragLeaveEvent ptr event)

Description: Virtual method void QTabWidget::dragLeaveEvent(QDragLeaveEvent *event)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QDragMoveEvent ptr event)

Description: Virtual method void QTabWidget::dragMoveEvent(QDragMoveEvent *event)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QDropEvent ptr event)

Description: Virtual method void QTabWidget::dropEvent(QDropEvent *event)

This method can be reimplemented in a derived class.

elideMode

Signature: [const] Qt_TextElideMode elideMode

Description: Method Qt::TextElideMode QTabWidget::elideMode()

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

elideMode=

Signature: void elideMode= (const Qt_TextElideMode arg1)

Description: Method void QTabWidget::setElideMode(Qt::TextElideMode)

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

emit_currentChanged

Signature: void emit_currentChanged (int index)

Description: Emitter for signal void QTabWidget::currentChanged(int index)

Call this method to emit this signal.

emit_customContextMenuRequested

Signature: void emit_customContextMenuRequested (const QPoint pos)

Description: Emitter for signal void QTabWidget::customContextMenuRequested(const QPoint &pos)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

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

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

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

Call this method to emit this signal.

emit_tabBarClicked

Signature: void emit_tabBarClicked (int index)

Description: Emitter for signal void QTabWidget::tabBarClicked(int index)

Call this method to emit this signal.

emit_tabBarDoubleClicked

Signature: void emit_tabBarDoubleClicked (int index)

Description: Emitter for signal void QTabWidget::tabBarDoubleClicked(int index)

Call this method to emit this signal.

emit_tabCloseRequested

Signature: void emit_tabCloseRequested (int index)

Description: Emitter for signal void QTabWidget::tabCloseRequested(int index)

Call this method to emit this signal.

emit_windowIconChanged

Signature: void emit_windowIconChanged (const QIcon icon)

Description: Emitter for signal void QTabWidget::windowIconChanged(const QIcon &icon)

Call this method to emit this signal.

emit_windowIconTextChanged

Signature: void emit_windowIconTextChanged (string iconText)

Description: Emitter for signal void QTabWidget::windowIconTextChanged(const QString &iconText)

Call this method to emit this signal.

emit_windowTitleChanged

Signature: void emit_windowTitleChanged (string title)

Description: Emitter for signal void QTabWidget::windowTitleChanged(const QString &title)

Call this method to emit this signal.

enterEvent

Signature: void enterEvent (QEvent ptr event)

Description: Virtual method void QTabWidget::enterEvent(QEvent *event)

This method can be reimplemented in a derived class.

event

Signature: bool event (QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

eventFilter

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

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

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

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

This method can be reimplemented in a derived class.

focusNextChild

Signature: bool focusNextChild

Description: Method bool QTabWidget::focusNextChild()

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

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

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

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

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

This method can be reimplemented in a derived class.

focusPreviousChild

Signature: bool focusPreviousChild

Description: Method bool QTabWidget::focusPreviousChild()

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

hasHeightForWidth

Signature: [const] bool hasHeightForWidth

Description: Virtual method bool QTabWidget::hasHeightForWidth()

This method can be reimplemented in a derived class.

heightForWidth

Signature: [const] int heightForWidth (int width)

Description: Virtual method int QTabWidget::heightForWidth(int width)

This method can be reimplemented in a derived class.

hideEvent

Signature: void hideEvent (QHideEvent ptr event)

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

This method can be reimplemented in a derived class.

iconSize

Signature: [const] QSize iconSize

Description: Method QSize QTabWidget::iconSize()

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

iconSize=

Signature: void iconSize= (const QSize size)

Description: Method void QTabWidget::setIconSize(const QSize &size)

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

indexOf

Signature: [const] int indexOf (QWidget ptr widget)

Description: Method int QTabWidget::indexOf(QWidget *widget)

initPainter

Signature: [const] void initPainter (QPainter ptr painter)

Description: Virtual method void QTabWidget::initPainter(QPainter *painter)

This method can be reimplemented in a derived class.

initStyleOption

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

Description: Method void QTabWidget::initStyleOption(QStyleOptionTabWidgetFrame *option)

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

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr arg1)

Description: Virtual method void QTabWidget::inputMethodEvent(QInputMethodEvent *)

This method can be reimplemented in a derived class.

inputMethodQuery

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

Description: Virtual method QVariant QTabWidget::inputMethodQuery(Qt::InputMethodQuery)

This method can be reimplemented in a derived class.

insertTab

(1) Signature: int insertTab (int index, QWidget ptr widget, string arg3)

Description: Method int QTabWidget::insertTab(int index, QWidget *widget, const QString &)

(2) Signature: int insertTab (int index, QWidget ptr widget, const QIcon icon, string label)

Description: Method int QTabWidget::insertTab(int index, QWidget *widget, const QIcon &icon, const QString &label)

isMovable?

Signature: [const] bool isMovable?

Description: Method bool QTabWidget::isMovable()

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

isSignalConnected

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

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

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

isTabEnabled?

Signature: [const] bool isTabEnabled? (int index)

Description: Method bool QTabWidget::isTabEnabled(int index)

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr arg1)

Description: Virtual method void QTabWidget::keyPressEvent(QKeyEvent *)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

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

This method can be reimplemented in a derived class.

leaveEvent

Signature: void leaveEvent (QEvent ptr event)

Description: Virtual method void QTabWidget::leaveEvent(QEvent *event)

This method can be reimplemented in a derived class.

metric

Signature: [const] int metric (const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QTabWidget::metric(QPaintDevice::PaintDeviceMetric)

This method can be reimplemented in a derived class.

minimumSizeHint

Signature: [const] QSize minimumSizeHint

Description: Virtual method QSize QTabWidget::minimumSizeHint()

This method can be reimplemented in a derived class.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QMouseEvent ptr event)

Description: Virtual method void QTabWidget::mouseDoubleClickEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QMouseEvent ptr event)

Description: Virtual method void QTabWidget::mouseMoveEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QMouseEvent ptr event)

Description: Virtual method void QTabWidget::mousePressEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QMouseEvent ptr event)

Description: Virtual method void QTabWidget::mouseReleaseEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

movable

Signature: [const] bool movable

Description: Method bool QTabWidget::isMovable()

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

movable=

Signature: void movable= (bool movable)

Description: Method void QTabWidget::setMovable(bool movable)

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

moveEvent

Signature: void moveEvent (QMoveEvent ptr event)

Description: Virtual method void QTabWidget::moveEvent(QMoveEvent *event)

This method can be reimplemented in a derived class.

nativeEvent

Signature: bool nativeEvent (bytes eventType, void * message, long ptr result)

Description: Virtual method bool QTabWidget::nativeEvent(const QByteArray &eventType, void *message, long int *result)

This method can be reimplemented in a derived class.

new

Signature: [static] new QTabWidget new (QWidget ptr parent = nullptr)

Description: Constructor QTabWidget::QTabWidget(QWidget *parent)

This method creates an object of class QTabWidget.

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

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QTabWidget::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.

paintEngine

Signature: [const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine *QTabWidget::paintEngine()

This method can be reimplemented in a derived class.

paintEvent

Signature: void paintEvent (QPaintEvent ptr arg1)

Description: Virtual method void QTabWidget::paintEvent(QPaintEvent *)

This method can be reimplemented in a derived class.

qt_create

Signature: void qt_create (unsigned long long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QTabWidget::create(WId, bool initializeWindow, bool destroyOldWindow)

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

qt_destroy

Signature: void qt_destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QTabWidget::destroy(bool destroyWindow, bool destroySubWindows)

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

receivers

Signature: [const] int receivers (string signal)

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

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

redirected

Signature: [const] QPaintDevice ptr redirected (QPoint ptr offset)

Description: Virtual method QPaintDevice *QTabWidget::redirected(QPoint *offset)

This method can be reimplemented in a derived class.

removeTab

Signature: void removeTab (int index)

Description: Method void QTabWidget::removeTab(int index)

resizeEvent

Signature: void resizeEvent (QResizeEvent ptr arg1)

Description: Virtual method void QTabWidget::resizeEvent(QResizeEvent *)

This method can be reimplemented in a derived class.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QTabWidget::sender()

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

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QTabWidget::senderSignalIndex()

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

setCornerWidget

Signature: void setCornerWidget (QWidget ptr w, const Qt_Corner corner = Qt::TopRightCorner)

Description: Method void QTabWidget::setCornerWidget(QWidget *w, Qt::Corner corner)

setCurrentIndex

Signature: void setCurrentIndex (int index)

Description: Method void QTabWidget::setCurrentIndex(int index)

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

setCurrentWidget

Signature: void setCurrentWidget (QWidget ptr widget)

Description: Method void QTabWidget::setCurrentWidget(QWidget *widget)

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

setDocumentMode

Signature: void setDocumentMode (bool set)

Description: Method void QTabWidget::setDocumentMode(bool set)

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

setElideMode

Signature: void setElideMode (const Qt_TextElideMode arg1)

Description: Method void QTabWidget::setElideMode(Qt::TextElideMode)

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

setIconSize

Signature: void setIconSize (const QSize size)

Description: Method void QTabWidget::setIconSize(const QSize &size)

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

setMovable

Signature: void setMovable (bool movable)

Description: Method void QTabWidget::setMovable(bool movable)

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

setTabBar

Signature: void setTabBar (QTabBar ptr arg1)

Description: Method void QTabWidget::setTabBar(QTabBar *)

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

setTabBarAutoHide

Signature: void setTabBarAutoHide (bool enabled)

Description: Method void QTabWidget::setTabBarAutoHide(bool enabled)

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

setTabEnabled

Signature: void setTabEnabled (int index, bool arg2)

Description: Method void QTabWidget::setTabEnabled(int index, bool)

setTabIcon

Signature: void setTabIcon (int index, const QIcon icon)

Description: Method void QTabWidget::setTabIcon(int index, const QIcon &icon)

setTabPosition

Signature: void setTabPosition (const QTabWidget_TabPosition arg1)

Description: Method void QTabWidget::setTabPosition(QTabWidget::TabPosition)

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

setTabShape

Signature: void setTabShape (const QTabWidget_TabShape s)

Description: Method void QTabWidget::setTabShape(QTabWidget::TabShape s)

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

setTabText

Signature: void setTabText (int index, string arg2)

Description: Method void QTabWidget::setTabText(int index, const QString &)

setTabToolTip

Signature: void setTabToolTip (int index, string tip)

Description: Method void QTabWidget::setTabToolTip(int index, const QString &tip)

setTabWhatsThis

Signature: void setTabWhatsThis (int index, string text)

Description: Method void QTabWidget::setTabWhatsThis(int index, const QString &text)

setTabsClosable

Signature: void setTabsClosable (bool closeable)

Description: Method void QTabWidget::setTabsClosable(bool closeable)

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

setUsesScrollButtons

Signature: void setUsesScrollButtons (bool useButtons)

Description: Method void QTabWidget::setUsesScrollButtons(bool useButtons)

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

setVisible

Signature: void setVisible (bool visible)

Description: Virtual method void QTabWidget::setVisible(bool visible)

This method can be reimplemented in a derived class.

sharedPainter

Signature: [const] QPainter ptr sharedPainter

Description: Virtual method QPainter *QTabWidget::sharedPainter()

This method can be reimplemented in a derived class.

showEvent

Signature: void showEvent (QShowEvent ptr arg1)

Description: Virtual method void QTabWidget::showEvent(QShowEvent *)

This method can be reimplemented in a derived class.

sizeHint

Signature: [const] QSize sizeHint

Description: Virtual method QSize QTabWidget::sizeHint()

This method can be reimplemented in a derived class.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

tabBar

Signature: [const] QTabBar ptr tabBar

Description: Method QTabBar *QTabWidget::tabBar()

tabBarAutoHide

Signature: [const] bool tabBarAutoHide

Description: Method bool QTabWidget::tabBarAutoHide()

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

tabBarAutoHide=

Signature: void tabBarAutoHide= (bool enabled)

Description: Method void QTabWidget::setTabBarAutoHide(bool enabled)

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

tabBarClicked

Signature: [signal] void tabBarClicked (int index)

Description: Signal declaration for QTabWidget::tabBarClicked(int index)

You can bind a procedure to this signal.

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

tabBarDoubleClicked

Signature: [signal] void tabBarDoubleClicked (int index)

Description: Signal declaration for QTabWidget::tabBarDoubleClicked(int index)

You can bind a procedure to this signal.

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

tabCloseRequested

Signature: [signal] void tabCloseRequested (int index)

Description: Signal declaration for QTabWidget::tabCloseRequested(int index)

You can bind a procedure to this signal.

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

tabIcon

Signature: [const] QIcon tabIcon (int index)

Description: Method QIcon QTabWidget::tabIcon(int index)

tabInserted

Signature: void tabInserted (int index)

Description: Virtual method void QTabWidget::tabInserted(int index)

This method can be reimplemented in a derived class.

tabPosition

Signature: [const] QTabWidget_TabPosition tabPosition

Description: Method QTabWidget::TabPosition QTabWidget::tabPosition()

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

tabPosition=

Signature: void tabPosition= (const QTabWidget_TabPosition arg1)

Description: Method void QTabWidget::setTabPosition(QTabWidget::TabPosition)

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

tabRemoved

Signature: void tabRemoved (int index)

Description: Virtual method void QTabWidget::tabRemoved(int index)

This method can be reimplemented in a derived class.

tabShape

Signature: [const] QTabWidget_TabShape tabShape

Description: Method QTabWidget::TabShape QTabWidget::tabShape()

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

tabShape=

Signature: void tabShape= (const QTabWidget_TabShape s)

Description: Method void QTabWidget::setTabShape(QTabWidget::TabShape s)

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

tabText

Signature: [const] string tabText (int index)

Description: Method QString QTabWidget::tabText(int index)

tabToolTip

Signature: [const] string tabToolTip (int index)

Description: Method QString QTabWidget::tabToolTip(int index)

tabWhatsThis

Signature: [const] string tabWhatsThis (int index)

Description: Method QString QTabWidget::tabWhatsThis(int index)

tabletEvent

Signature: void tabletEvent (QTabletEvent ptr event)

Description: Virtual method void QTabWidget::tabletEvent(QTabletEvent *event)

This method can be reimplemented in a derived class.

tabsClosable

Signature: [const] bool tabsClosable

Description: Method bool QTabWidget::tabsClosable()

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

tabsClosable=

Signature: void tabsClosable= (bool closeable)

Description: Method void QTabWidget::setTabsClosable(bool closeable)

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

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QTabWidget::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 QTabWidget::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 QTabWidget::trUtf8(const char *s, const char *c, int n)

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

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QTabWidget::updateMicroFocus()

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

usesScrollButtons

Signature: [const] bool usesScrollButtons

Description: Method bool QTabWidget::usesScrollButtons()

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

usesScrollButtons=

Signature: void usesScrollButtons= (bool useButtons)

Description: Method void QTabWidget::setUsesScrollButtons(bool useButtons)

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

wheelEvent

Signature: void wheelEvent (QWheelEvent ptr event)

Description: Virtual method void QTabWidget::wheelEvent(QWheelEvent *event)

This method can be reimplemented in a derived class.

widget

Signature: [const] QWidget ptr widget (int index)

Description: Method QWidget *QTabWidget::widget(int index)

windowIconChanged

Signature: [signal] void windowIconChanged (const QIcon icon)

Description: Signal declaration for QTabWidget::windowIconChanged(const QIcon &icon)

You can bind a procedure to this signal.

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

windowIconTextChanged

Signature: [signal] void windowIconTextChanged (string iconText)

Description: Signal declaration for QTabWidget::windowIconTextChanged(const QString &iconText)

You can bind a procedure to this signal.

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

windowTitleChanged

Signature: [signal] void windowTitleChanged (string title)

Description: Signal declaration for QTabWidget::windowTitleChanged(const QString &title)

You can bind a procedure to this signal.

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