2019-02-16 QTabWidget的全部属性方法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2019-02-16 QTabWidget的全部属性方法相关的知识,希望对你有一定的参考价值。
参考技术A Propertiescount : const int
currentIndex : int
documentMode : bool
elideMode : Qt::TextElideMode
iconSize : QSize
movable : bool
tabBarAutoHide : bool
tabPosition : TabPosition
tabShape : TabShape
tabsClosable : bool
usesScrollButtons : bool
59 properties inherited from QWidget
1 property inherited from QObject
Public Functions
QTabWidget (QWidget * parent = nullptr)
virtual ~QTabWidget ()
int addTab (QWidget * page , const QString & label )
int addTab (QWidget * page , const QIcon & icon , const QString & label )
void clear ()
QWidget * cornerWidget (Qt::Corner corner = Qt::TopRightCorner) const
int count () const
int currentIndex () const
QWidget * currentWidget () const
bool documentMode () const
Qt::TextElideMode elideMode () const
QSize iconSize () const
int indexOf (QWidget * w ) const
int insertTab (int index , QWidget * page , const QString & label )
int insertTab (int index , QWidget * page , const QIcon & icon , const QString & label )
bool isMovable () const
bool isTabEnabled (int index ) const
void removeTab (int index )
void setCornerWidget (QWidget * widget , Qt::Corner corner = Qt::TopRightCorner)
void setDocumentMode (bool set )
void setElideMode ( Qt::TextElideMode )
void setIconSize (const QSize & size )
void setMovable (bool movable )
void setTabBarAutoHide (bool enabled )
void setTabEnabled (int index , bool enable )
void setTabIcon (int index , const QIcon & icon )
void setTabPosition ( QTabWidget::TabPosition )
void setTabShape (QTabWidget::TabShape s )
void setTabText (int index , const QString & label )
void setTabToolTip (int index , const QString & tip )
void setTabWhatsThis (int index , const QString & text )
void setTabsClosable (bool closeable )
void setUsesScrollButtons (bool useButtons )
QTabBar * tabBar () const
bool tabBarAutoHide () const
QIcon tabIcon (int index ) const
QTabWidget::TabPosition tabPosition () const
QTabWidget::TabShape tabShape () const
QString tabText (int index ) const
QString tabToolTip (int index ) const
QString tabWhatsThis (int index ) const
bool tabsClosable () const
bool usesScrollButtons () const
QWidget * widget (int index ) const
Reimplemented Public Functions
virtual bool hasHeightForWidth () const override
virtual int heightForWidth (int width ) const override
virtual QSize minimumSizeHint () const override
virtual QSize sizeHint () const override
214 public functions inherited from QWidget
31 public functions inherited from QObject
14 public functions inherited from QPaintDevice
Public Slots
void setCurrentIndex (int index )
void setCurrentWidget (QWidget * widget )
19 public slots inherited from QWidget
1 public slot inherited from QObject
Signals
void currentChanged (int index )
void tabBarClicked (int index )
void tabBarDoubleClicked (int index )
void tabCloseRequested (int index )
3 signals inherited from QWidget
2 signals inherited from QObject
Static Public Members
const QMetaObject staticMetaObject
5 static public members inherited from QWidget
9 static public members inherited from QObject
Protected Functions
void initStyleOption (QStyleOptionTabWidgetFrame * option ) const
void setTabBar (QTabBar * tb )
virtual void tabInserted (int index )
virtual void tabRemoved (int index )
Reimplemented Protected Functions
virtual void changeEvent (QEvent * ev ) override
virtual bool event (QEvent * ev ) override
virtual void keyPressEvent (QKeyEvent * e ) override
virtual void paintEvent (QPaintEvent * event ) override
virtual void resizeEvent (QResizeEvent * e ) override
virtual void showEvent ( QShowEvent * ) override
以上是关于2019-02-16 QTabWidget的全部属性方法的主要内容,如果未能解决你的问题,请参考以下文章
DateTime(“2019-02-16T10:00:00 + 08:00”)使用偏移值转换为本地日期时间
错误:'QTabWidget::QTabWidget(const QTabWidget&)' 是私有的
通过单击 QTabWidget 外部的按钮,将每个选项卡(QTabWidget)中的数组保存到 QTabWidget 外部的二维数组