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

API reference - Class QTabWidget

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QTabWidget

Class hierarchy: QTabWidget » QWidget » QObject

Sub-classes: TabPosition, QFlags_TabPosition, TabShape, QFlags_TabShape

Public constructors

new QTabWidgetnew(QWidget ptr parent = 0)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 = 0)Emitter for signal void QTabWidget::destroyed(QObject *)
voidemit_tabCloseRequested(int index)Emitter for signal void QTabWidget::tabCloseRequested(int index)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QTabWidget::eventFilter(QObject *, QEvent *)
[const]intheightForWidth(int arg1)Virtual method int QTabWidget::heightForWidth(int)
[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)
[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)
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()
[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)

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 = 0)
Static method QString QTabWidget::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QTabWidget::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QTabWidget::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QTabWidget::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr arg1)Virtual method void QTabWidget::actionEvent(QActionEvent *)
voidchangeEvent(QEvent ptr arg1)Virtual method void QTabWidget::changeEvent(QEvent *)
voidchildEvent(QChildEvent ptr arg1)Virtual method void QTabWidget::childEvent(QChildEvent *)
voidcloseEvent(QCloseEvent ptr arg1)Virtual method void QTabWidget::closeEvent(QCloseEvent *)
voidcontextMenuEvent(QContextMenuEvent ptr arg1)Virtual method void QTabWidget::contextMenuEvent(QContextMenuEvent *)
voidcustomEvent(QEvent ptr arg1)Virtual method void QTabWidget::customEvent(QEvent *)
voiddisconnectNotify(string signal)Virtual method void QTabWidget::disconnectNotify(const char *signal)
voiddragEnterEvent(QDragEnterEvent ptr arg1)Virtual method void QTabWidget::dragEnterEvent(QDragEnterEvent *)
voiddragLeaveEvent(QDragLeaveEvent ptr arg1)Virtual method void QTabWidget::dragLeaveEvent(QDragLeaveEvent *)
voiddragMoveEvent(QDragMoveEvent ptr arg1)Virtual method void QTabWidget::dragMoveEvent(QDragMoveEvent *)
voiddropEvent(QDropEvent ptr arg1)Virtual method void QTabWidget::dropEvent(QDropEvent *)
voidenabledChange(bool arg1)Virtual method void QTabWidget::enabledChange(bool)
voidenterEvent(QEvent ptr arg1)Virtual method void QTabWidget::enterEvent(QEvent *)
boolevent(QEvent ptr arg1)Virtual method bool QTabWidget::event(QEvent *)
voidfocusInEvent(QFocusEvent ptr arg1)Virtual method void QTabWidget::focusInEvent(QFocusEvent *)
boolfocusNextChildMethod bool QTabWidget::focusNextChild()
boolfocusNextPrevChild(bool next)Virtual method bool QTabWidget::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr arg1)Virtual method void QTabWidget::focusOutEvent(QFocusEvent *)
boolfocusPreviousChildMethod bool QTabWidget::focusPreviousChild()
voidfontChange(const QFont arg1)Virtual method void QTabWidget::fontChange(const QFont &)
voidhideEvent(QHideEvent ptr arg1)Virtual method void QTabWidget::hideEvent(QHideEvent *)
[const]voidinitStyleOption(QStyleOptionTabWidgetFrame ptr option)Method void QTabWidget::initStyleOption(QStyleOptionTabWidgetFrame *option)
voidinputMethodEvent(QInputMethodEvent ptr arg1)Virtual method void QTabWidget::inputMethodEvent(QInputMethodEvent *)
voidkeyPressEvent(QKeyEvent ptr arg1)Virtual method void QTabWidget::keyPressEvent(QKeyEvent *)
voidkeyReleaseEvent(QKeyEvent ptr arg1)Virtual method void QTabWidget::keyReleaseEvent(QKeyEvent *)
voidlanguageChangeVirtual method void QTabWidget::languageChange()
voidleaveEvent(QEvent ptr arg1)Virtual method void QTabWidget::leaveEvent(QEvent *)
[const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QTabWidget::metric(QPaintDevice::PaintDeviceMetric)
voidmouseDoubleClickEvent(QMouseEvent ptr arg1)Virtual method void QTabWidget::mouseDoubleClickEvent(QMouseEvent *)
voidmouseMoveEvent(QMouseEvent ptr arg1)Virtual method void QTabWidget::mouseMoveEvent(QMouseEvent *)
voidmousePressEvent(QMouseEvent ptr arg1)Virtual method void QTabWidget::mousePressEvent(QMouseEvent *)
voidmouseReleaseEvent(QMouseEvent ptr arg1)Virtual method void QTabWidget::mouseReleaseEvent(QMouseEvent *)
voidmoveEvent(QMoveEvent ptr arg1)Virtual method void QTabWidget::moveEvent(QMoveEvent *)
voidpaintEvent(QPaintEvent ptr arg1)Virtual method void QTabWidget::paintEvent(QPaintEvent *)
voidpaletteChange(const QPalette arg1)Virtual method void QTabWidget::paletteChange(const QPalette &)
voidqt_create(unsigned 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)
voidresetInputContextMethod void QTabWidget::resetInputContext()
voidresizeEvent(QResizeEvent ptr arg1)Virtual method void QTabWidget::resizeEvent(QResizeEvent *)
[const]QObject ptrsenderMethod QObject *QTabWidget::sender()
voidsetTabBar(QTabBar ptr arg1)Method void QTabWidget::setTabBar(QTabBar *)
voidshowEvent(QShowEvent ptr arg1)Virtual method void QTabWidget::showEvent(QShowEvent *)
voidstyleChange(QStyle arg1)Virtual method void QTabWidget::styleChange(QStyle &)
[const]QTabBar ptrtabBarMethod QTabBar *QTabWidget::tabBar()
voidtabInserted(int index)Virtual method void QTabWidget::tabInserted(int index)
voidtabRemoved(int index)Virtual method void QTabWidget::tabRemoved(int index)
voidtabletEvent(QTabletEvent ptr arg1)Virtual method void QTabWidget::tabletEvent(QTabletEvent *)
voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QTabWidget::timerEvent(QTimerEvent *)
voidupdateMicroFocusMethod void QTabWidget::updateMicroFocus()
voidwheelEvent(QWheelEvent ptr arg1)Virtual method void QTabWidget::wheelEvent(QWheelEvent *)
voidwindowActivationChange(bool arg1)Virtual method void QTabWidget::windowActivationChange(bool)

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

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

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 arg1)

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

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 arg1)

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

This method can be reimplemented in a derived class.

clear

Signature: void clear

Description: Method void QTabWidget::clear()

closeEvent

Signature: void closeEvent (QCloseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QContextMenuEvent ptr arg1)

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

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

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

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

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 arg1)

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

This method can be reimplemented in a derived class.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

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

destroyed

Signature: [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 (string signal)

Description: Virtual method void QTabWidget::disconnectNotify(const char *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 arg1)

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

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QDragLeaveEvent ptr arg1)

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

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QDragMoveEvent ptr arg1)

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

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QDropEvent ptr arg1)

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

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 = 0)

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

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.

enabledChange

Signature: void enabledChange (bool arg1)

Description: Virtual method void QTabWidget::enabledChange(bool)

This method can be reimplemented in a derived class.

enterEvent

Signature: void enterEvent (QEvent ptr arg1)

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

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 arg1, QEvent ptr arg2)

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

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr arg1)

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

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 arg1)

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

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.

fontChange

Signature: void fontChange (const QFont arg1)

Description: Virtual method void QTabWidget::fontChange(const QFont &)

This method can be reimplemented in a derived class.

heightForWidth

Signature: [const] int heightForWidth (int arg1)

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

This method can be reimplemented in a derived class.

hideEvent

Signature: void hideEvent (QHideEvent ptr arg1)

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

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)

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.

isTabEnabled?

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

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

is_const_object?

Signature: [const] bool is_const_object?

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

Use of this method is deprecated. Use _is_const_object? instead

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

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 arg1)

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

This method can be reimplemented in a derived class.

languageChange

Signature: void languageChange

Description: Virtual method void QTabWidget::languageChange()

This method can be reimplemented in a derived class.

leaveEvent

Signature: void leaveEvent (QEvent ptr arg1)

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

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 arg1)

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

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QMouseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QMouseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QMouseEvent ptr arg1)

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

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 arg1)

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

This method can be reimplemented in a derived class.

new

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

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.

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.

paletteChange

Signature: void paletteChange (const QPalette arg1)

Description: Virtual method void QTabWidget::paletteChange(const QPalette &)

This method can be reimplemented in a derived class.

qt_create

Signature: void qt_create (unsigned 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.

removeTab

Signature: void removeTab (int index)

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

resetInputContext

Signature: void resetInputContext

Description: Method void QTabWidget::resetInputContext()

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

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.

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.

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.

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.

styleChange

Signature: void styleChange (QStyle arg1)

Description: Virtual method void QTabWidget::styleChange(QStyle &)

This method can be reimplemented in a derived class.

tabBar

Signature: [const] QTabBar ptr tabBar

Description: Method QTabBar *QTabWidget::tabBar()

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

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 arg1)

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

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 arg1)

Description: Virtual method void QTabWidget::timerEvent(QTimerEvent *)

This method can be reimplemented in a derived class.

tr

(1) Signature: [static] string tr (string s, string c = 0)

Description: Static method QString QTabWidget::tr(const char *s, const char *c)

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

(2) Signature: [static] string tr (string s, string c, int n)

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

(1) Signature: [static] string trUtf8 (string s, string c = 0)

Description: Static method QString QTabWidget::trUtf8(const char *s, const char *c)

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

(2) Signature: [static] string trUtf8 (string s, string c, int n)

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 arg1)

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

This method can be reimplemented in a derived class.

widget

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

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

windowActivationChange

Signature: void windowActivationChange (bool arg1)

Description: Virtual method void QTabWidget::windowActivationChange(bool)

This method can be reimplemented in a derived class.