Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

Compatibility Members for QTabWidget

The following members of classQTabWidgetare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QTabWidget(QWidget * parent, const char * name, Qt::WindowFlags f = 0)
voidchangeTab(QWidget * widget, const QString & label)
voidchangeTab(QWidget * widget, const QIcon & icon, const QString & label)
QWidget *currentPage() const
intcurrentPageIndex() const
voidinsertTab(QWidget * widget, const QString & label, int index = -1)
voidinsertTab(QWidget * widget, const QIcon & icon, const QString & label, int index = -1)
boolisTabEnabled(QWidget * widget) const
QStringlabel(int index) const
intmargin() const
QWidget *page(int index) const
voidremoveTabToolTip(QWidget * widget)
voidsetMargin(int margin)
voidsetTabEnabled(QWidget * widget, bool b)
voidsetTabIconSet(QWidget * widget, const QIcon & icon)
voidsetTabLabel(QWidget * widget, const QString & label)
voidsetTabToolTip(QWidget * widget, const QString & tip)
QIcontabIconSet(QWidget * widget) const
QStringtabLabel(QWidget * widget) const
QStringtabToolTip(QWidget * widget) const

Public Slots

voidremovePage(QWidget * widget)
voidsetCurrentPage(int index)
voidshowPage(QWidget * widget)
  • 1 public slot inherited fromQWidget

Signals

voidcurrentChanged(QWidget * widget)
voidselected(const QString & tabLabel)

Member Function Documentation

QTabWidget::QTabWidget(QWidget * parent, constchar * name,Qt::WindowFlags f = 0)

Use one of the constructors that doesn't take thename argument and then usesetObjectName() instead.

void QTabWidget::changeTab(QWidget * widget, constQString & label)

UsesetTabText() instead.

void QTabWidget::changeTab(QWidget * widget, constQIcon & icon, constQString & label)

UsesetTabText() andsetTabIcon() instead.

[signal]void QTabWidget::currentChanged(QWidget * widget)

UsecurrentChanged(int) instead.

Note:SignalcurrentChanged is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(tabWidget,static_cast<void(QTabWidget::*)(QWidget*)>(&QTabWidget::currentChanged),[=](QWidget*widget){/* ... */ });

QWidget * QTabWidget::currentPage() const

UsecurrentWidget() instead.

See alsosetCurrentPage().

int QTabWidget::currentPageIndex() const

UsecurrentIndex() instead.

void QTabWidget::insertTab(QWidget * widget, constQString & label,int index = -1)

UseinsertTab(index, widget, label) instead.

void QTabWidget::insertTab(QWidget * widget, constQIcon & icon, constQString & label,int index = -1)

UseinsertTab(index, widget, icon, label) instead.

bool QTabWidget::isTabEnabled(QWidget * widget) const

UseisTabEnabled(tabWidget->indexOf(widget)) instead.

QString QTabWidget::label(int index) const

UsetabText() instead.

int QTabWidget::margin() const

This function is kept only to make old code compile. This functionality is no longer supported byQTabWidget.

See alsosetMargin(),contentsRect(), andsetContentsMargins().

QWidget * QTabWidget::page(int index) const

Usewidget() instead.

[slot]void QTabWidget::removePage(QWidget * widget)

UseremoveTab(indexOf(widget)) instead.

void QTabWidget::removeTabToolTip(QWidget * widget)

UsesetTabToolTip(tabWidget->indexOf(widget), QString()) instead.

[signal]void QTabWidget::selected(constQString & tabLabel)

This signal is emitted whenever a tab is selected (raised), including during the firstshow().

You can normally usecurrentChanged() instead.

[slot]void QTabWidget::setCurrentPage(int index)

UsesetCurrentIndex() instead.

See alsocurrentPage().

void QTabWidget::setMargin(int margin)

This function is kept only to make old code compile. This functionality is no longer supported byQTabWidget.

See alsomargin(),contentsRect(), andsetContentsMargins().

void QTabWidget::setTabEnabled(QWidget * widget,bool b)

UsesetTabEnabled(tabWidget->indexOf(widget), b) instead.

void QTabWidget::setTabIconSet(QWidget * widget, constQIcon & icon)

UsesetTabIcon(tabWidget->indexOf(widget), icon) instead.

See alsotabIconSet().

void QTabWidget::setTabLabel(QWidget * widget, constQString & label)

UsesetTabText(tabWidget->indexOf(widget), label) instead.

See alsotabLabel().

void QTabWidget::setTabToolTip(QWidget * widget, constQString & tip)

UsesetTabToolTip(tabWidget->indexOf(widget), tip) instead.

[slot]void QTabWidget::showPage(QWidget * widget)

UsesetCurrentIndex(indexOf(widget)) instead.

QIcon QTabWidget::tabIconSet(QWidget * widget) const

UsetabIcon(tabWidget->indexOf(widget)) instead.

See alsosetTabIconSet().

QString QTabWidget::tabLabel(QWidget * widget) const

UsetabText(tabWidget->indexOf(widget)) instead.

See alsosetTabLabel().

QString QTabWidget::tabToolTip(QWidget * widget) const

UsetabToolTip(tabWidget->indexOf(widget)) instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp