返回介绍

QTab Class

发布于 2019-10-04 15:03:12 字数 2604 浏览 1222 评论 0 收藏 0

The QTab class provides the structures in a QTabBar. More...

#include <qtabbar.h>

Inherits Qt.

List of all member functions.

Public Members

  • QTab ()
  • virtual ~QTab ()
  • QTab ( constQString&text )
  • QTab ( constQIconSet&icon, constQString&text = QString::null )
  • void setText ( constQString&text )
  • QString text () const
  • void setIconSet ( constQIconSet&icon )
  • QIconSet * iconSet () const
  • void setRect ( constQRect&rect )
  • QRect rect () const
  • void setEnabled ( boolenable )
  • bool isEnabled () const
  • void setIdentifier ( inti )
  • int identifier () const

Detailed Description

The QTab class provides the structures in a QTabBar.

This class is used for custom QTabBar tab headings.

See also QTabBar and Advanced Widgets.


Member Function Documentation

QTab::QTab ()

Constructs an empty tab. All fields are set to empty.

QTab::QTab ( constQString&text )

Constructs a tab with the text, text.

QTab::QTab ( constQIconSet&icon, constQString&text = QString::null )

Constructs a tab with an icon and the text, text.

QTab::~QTab () [virtual]

Destroys the tab and frees up all allocated resources

QIconSet* QTab::iconSet () const

Return the QIconSet of the QTab.

int QTab::identifier () const

Return the identifier for the QTab.

bool QTab::isEnabled () const

Returns TRUE if the QTab is enabled, otherwise return FALSE.

QRect QTab::rect () const

Return the QRect for the QTab.

void QTab::setEnabled ( boolenable )

If enable is TRUE enable the QTab, otherwise disable it.

void QTab::setIconSet ( constQIconSet&icon )

Sets the tab iconset to icon

void QTab::setIdentifier ( inti )

Set the identifier for the QTab to i. Each identifier for a QTabBar must be unique

void QTab::setRect ( constQRect&rect )

Set the QTab QRect to rect.

void QTab::setText ( constQString&text )

Sets the text of the tab to text.

QString QTab::text () const

Return the text of the QTab label.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文