.TH "kdk::KNativeTabbar" 3 "Version version:3.0" "LIBKYSDK-APPLICATIONS" \" -*- nroff -*- .ad l .nh .SH NAME kdk::KNativeTabbar .SH SYNOPSIS .br .PP .PP Inherits \fBKCustomTabBar\fP\&. .SS "Signals" .in +1c .ti -1c .RI "void \fBrightlicked\fP (QPoint point)" .br .RI "鼠标右键信号 " .in -1c Signals inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "void \fBcurrentChanged\fP (int index)" .br .ti -1c .RI "void \fBtabCloseRequested\fP (int index)" .br .ti -1c .RI "void \fBtabMoved\fP (int from, int to)" .br .ti -1c .RI "void \fBtabBarClicked\fP (int index)" .br .ti -1c .RI "void \fBtabBarDoubleClicked\fP (int index)" .br .ti -1c .RI "void \fBleftBStatus\fP (bool flag)" .br .ti -1c .RI "void \fBrightBStatus\fP (bool flag)" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBKNativeTabbar\fP (KNativeTabbarStyle \fBbarStyle\fP=SegmentLight, QWidget *parent=nullptr)" .br .ti -1c .RI "void \fBsetTabbarStyle\fP (KNativeTabbarStyle \fBbarStyle\fP)" .br .RI "设置TabBar样式 " .ti -1c .RI "KNativeTabbarStyle \fBbarStyle\fP ()" .br .RI "返回TabBar样式 " .ti -1c .RI "void \fBsetBorderRadius\fP (int radius)" .br .RI "设置圆角半径,只对SegmentDark,SegmentLight样式生效 " .ti -1c .RI "int \fBborderRadius\fP ()" .br .RI "获取圆角半径 " .ti -1c .RI "void \fBsetBackgroundColor\fP (const QColor &color)" .br .RI "设置背景色 " .in -1c Public Member Functions inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "\fBKCustomTabBar\fP (QWidget *parent=nullptr)" .br .ti -1c .RI "Shape \fBshape\fP () const" .br .ti -1c .RI "void \fBsetShape\fP (Shape shape)" .br .ti -1c .RI "int \fBaddTab\fP (const QString &text)" .br .ti -1c .RI "int \fBaddTab\fP (const QIcon &icon, const QString &text)" .br .ti -1c .RI "int \fBinsertTab\fP (int index, const QString &text)" .br .ti -1c .RI "int \fBinsertTab\fP (int index, const QIcon &icon, const QString &text)" .br .ti -1c .RI "void \fBremoveTab\fP (int index)" .br .ti -1c .RI "void \fBmoveTab\fP (int from, int to)" .br .ti -1c .RI "bool \fBisTabEnabled\fP (int index) const" .br .ti -1c .RI "void \fBsetTabEnabled\fP (int index, bool)" .br .ti -1c .RI "QString \fBtabText\fP (int index) const" .br .ti -1c .RI "void \fBsetTabText\fP (int index, const QString &text)" .br .ti -1c .RI "void \fBsetTabContent\fP (int index, const QString &text)" .br .ti -1c .RI "QColor \fBtabTextColor\fP (int index) const" .br .ti -1c .RI "void \fBsetTabTextColor\fP (int index, const QColor &color)" .br .ti -1c .RI "QIcon \fBtabIcon\fP (int index) const" .br .ti -1c .RI "void \fBsetTabIcon\fP (int index, const QIcon &icon)" .br .ti -1c .RI "Qt::TextElideMode \fBelideMode\fP () const" .br .ti -1c .RI "void \fBsetElideMode\fP (Qt::TextElideMode)" .br .ti -1c .RI "void \fBsetTabToolTip\fP (int index, const QString &tip)" .br .ti -1c .RI "QString \fBtabToolTip\fP (int index) const" .br .ti -1c .RI "void \fBsetTabWhatsThis\fP (int index, const QString &text)" .br .ti -1c .RI "QString \fBtabWhatsThis\fP (int index) const" .br .ti -1c .RI "void \fBsetTabData\fP (int index, const QVariant &data)" .br .ti -1c .RI "QVariant \fBtabData\fP (int index) const" .br .ti -1c .RI "QRect \fBtabRect\fP (int index) const" .br .ti -1c .RI "int \fBtabAt\fP (const QPoint &pos) const" .br .ti -1c .RI "int \fBcurrentIndex\fP () const" .br .ti -1c .RI "int \fBcount\fP () const" .br .ti -1c .RI "QSize \fBsizeHint\fP () const override" .br .ti -1c .RI "QSize \fBminimumSizeHint\fP () const override" .br .ti -1c .RI "void \fBsetDrawBase\fP (bool drawTheBase)" .br .ti -1c .RI "bool \fBdrawBase\fP () const" .br .ti -1c .RI "QSize \fBiconSize\fP () const" .br .ti -1c .RI "void \fBsetIconSize\fP (const QSize &size)" .br .ti -1c .RI "bool \fBusesScrollButtons\fP () const" .br .ti -1c .RI "void \fBsetUsesScrollButtons\fP (bool useButtons)" .br .ti -1c .RI "bool \fBtabsClosable\fP () const" .br .ti -1c .RI "void \fBsetTabsClosable\fP (bool closable)" .br .ti -1c .RI "void \fBsetTabButton\fP (int index, ButtonPosition position, QWidget *widget)" .br .ti -1c .RI "QWidget * \fBtabButton\fP (int index, ButtonPosition position) const" .br .ti -1c .RI "SelectionBehavior \fBselectionBehaviorOnRemove\fP () const" .br .ti -1c .RI "void \fBsetSelectionBehaviorOnRemove\fP (SelectionBehavior behavior)" .br .ti -1c .RI "bool \fBexpanding\fP () const" .br .ti -1c .RI "void \fBsetExpanding\fP (bool enabled)" .br .ti -1c .RI "bool \fBisMovable\fP () const" .br .ti -1c .RI "void \fBsetMovable\fP (bool movable)" .br .ti -1c .RI "bool \fBdocumentMode\fP () const" .br .ti -1c .RI "void \fBsetDocumentMode\fP (bool set)" .br .ti -1c .RI "bool \fBautoHide\fP () const" .br .ti -1c .RI "void \fBsetAutoHide\fP (bool hide)" .br .ti -1c .RI "bool \fBchangeCurrentOnDrag\fP () const" .br .ti -1c .RI "void \fBsetChangeCurrentOnDrag\fP (bool change)" .br .ti -1c .RI "QString \fBaccessibleTabName\fP (int index) const" .br .ti -1c .RI "void \fBsetAccessibleTabName\fP (int index, const QString &name)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "QSize \fBsizeHint\fP () const" .br .ti -1c .RI "QSize \fBminimumTabSizeHint\fP (int index) const" .br .ti -1c .RI "QSize \fBtabSizeHint\fP (int index) const" .br .ti -1c .RI "void \fBpaintEvent\fP (QPaintEvent *event)" .br .in -1c Protected Member Functions inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "virtual void \fBtabInserted\fP (int index)" .br .ti -1c .RI "virtual void \fBtabRemoved\fP (int index)" .br .ti -1c .RI "virtual void \fBtabLayoutChange\fP ()" .br .ti -1c .RI "bool \fBevent\fP (QEvent *) override" .br .ti -1c .RI "void \fBresizeEvent\fP (QResizeEvent *) override" .br .ti -1c .RI "void \fBshowEvent\fP (QShowEvent *) override" .br .ti -1c .RI "void \fBhideEvent\fP (QHideEvent *) override" .br .ti -1c .RI "void \fBpaintEvent\fP (QPaintEvent *) override" .br .ti -1c .RI "void \fBmousePressEvent\fP (QMouseEvent *) override" .br .ti -1c .RI "void \fBmouseMoveEvent\fP (QMouseEvent *) override" .br .ti -1c .RI "void \fBmouseReleaseEvent\fP (QMouseEvent *) override" .br .ti -1c .RI "void \fBwheelEvent\fP (QWheelEvent *event) override" .br .ti -1c .RI "void \fBkeyPressEvent\fP (QKeyEvent *) override" .br .ti -1c .RI "void \fBchangeEvent\fP (QEvent *) override" .br .ti -1c .RI "void \fBtimerEvent\fP (QTimerEvent *event) override" .br .ti -1c .RI "void \fBinitStyleOption\fP (QStyleOptionTab *option, int tabIndex) const" .br .in -1c .SS "Additional Inherited Members" Public Types inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "enum \fBShape\fP { \fBRoundedNorth\fP, \fBRoundedSouth\fP, \fBRoundedWest\fP, \fBRoundedEast\fP, \fBTriangularNorth\fP, \fBTriangularSouth\fP, \fBTriangularWest\fP, \fBTriangularEast\fP }" .br .ti -1c .RI "enum \fBButtonPosition\fP { \fBLeftSide\fP, \fBRightSide\fP }" .br .ti -1c .RI "enum \fBSelectionBehavior\fP { \fBSelectLeftTab\fP, \fBSelectRightTab\fP, \fBSelectPreviousTab\fP }" .br .in -1c Public Slots inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "void \fBsetCurrentIndex\fP (int index)" .br .ti -1c .RI "void \fBleftScrollTabs\fP ()" .br .ti -1c .RI "void \fBrightScrollTabs\fP ()" .br .ti -1c .RI "void \fBcloseTab\fP ()" .br .in -1c Properties inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "Shape \fBshape\fP" .br .ti -1c .RI "int \fBcurrentIndex\fP" .br .ti -1c .RI "int \fBcount\fP" .br .ti -1c .RI "bool \fBdrawBase\fP" .br .ti -1c .RI "QSize \fBiconSize\fP" .br .ti -1c .RI "Qt::TextElideMode \fBelideMode\fP" .br .ti -1c .RI "bool \fBusesScrollButtons\fP" .br .ti -1c .RI "bool \fBtabsClosable\fP" .br .ti -1c .RI "SelectionBehavior \fBselectionBehaviorOnRemove\fP" .br .ti -1c .RI "bool \fBexpanding\fP" .br .ti -1c .RI "bool \fBmovable\fP" .br .ti -1c .RI "bool \fBdocumentMode\fP" .br .ti -1c .RI "bool \fBautoHide\fP" .br .ti -1c .RI "bool \fBchangeCurrentOnDrag\fP" .br .in -1c .SH "Member Function Documentation" .PP .SS "KNativeTabbarStyle kdk::KNativeTabbar::barStyle ()" .PP 返回TabBar样式 .PP \fBReturns\fP .RS 4 .RE .PP .SS "int kdk::KNativeTabbar::borderRadius ()" .PP 获取圆角半径 .PP \fBReturns\fP .RS 4 .RE .PP .SS "QSize kdk::KNativeTabbar::minimumTabSizeHint (int index) const\fC [protected]\fP, \fC [virtual]\fP" .PP Reimplemented from \fBKCustomTabBar\fP\&. .SS "void kdk::KNativeTabbar::rightlicked (QPoint point)\fC [signal]\fP" .PP 鼠标右键信号 .PP \fBParameters\fP .RS 4 \fIpoint\fP .RE .PP .SS "void kdk::KNativeTabbar::setBackgroundColor (const QColor & color)" .PP 设置背景色 .PP \fBParameters\fP .RS 4 \fIcolor\fP .RE .PP .SS "void kdk::KNativeTabbar::setBorderRadius (int radius)" .PP 设置圆角半径,只对SegmentDark,SegmentLight样式生效 .PP \fBParameters\fP .RS 4 \fIradius\fP .RE .PP .SS "void kdk::KNativeTabbar::setTabbarStyle (KNativeTabbarStyle barStyle)" .PP 设置TabBar样式 .PP \fBParameters\fP .RS 4 \fIbarStyle\fP .RE .PP .SS "QSize kdk::KNativeTabbar::tabSizeHint (int index) const\fC [protected]\fP, \fC [virtual]\fP" .PP Reimplemented from \fBKCustomTabBar\fP\&. .SH "Author" .PP Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code\&.