QtCanpool
3.3.0
载入中...
搜索中...
未找到
ribbontabbar.h
浏览该文件的文档.
1
5
#pragma once
6
7
#include "
qxribbon_global.h
"
8
#include <QMargins>
9
#include <QTabBar>
10
11
QX_RIBBON_BEGIN_NAMESPACE
12
13
class
RibbonTabBar
:
public
QTabBar
14
{
15
Q_OBJECT
16
public
:
17
explicit
RibbonTabBar
(QWidget *parent =
Q_NULLPTR
);
18
19
const
QMargins &tabMargin()
const
;
20
void
setTabMargin(
const
QMargins &margin);
21
22
int
addTab(
const
QString &
text
);
23
int
insertTab(
int
index,
const
QString &
text
);
24
25
int
currentIndex()
const
;
26
int
count()
const
;
27
28
public
Q_SLOTS:
29
void
setCurrentIndex(
int
index);
30
protected
:
31
virtual
QSize tabSizeHint(
int
index)
const override
;
32
33
void
wheelEvent(QWheelEvent *event)
override
;
34
private
:
35
QMargins m_tabMargin;
36
};
37
38
QX_RIBBON_END_NAMESPACE
QxRibbon::RibbonTabBar
Definition
ribbontabbar.h:14
Q_NULLPTR
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
Definition
qxapp_global.h:10
qxribbon_global.h
QX_RIBBON_END_NAMESPACE
#define QX_RIBBON_END_NAMESPACE
Definition
qxribbon_global.h:63
QX_RIBBON_BEGIN_NAMESPACE
#define QX_RIBBON_BEGIN_NAMESPACE
Definition
qxribbon_global.h:60
text
QColor text
Definition
qxthemepalette.cpp:20
src
libs
qxribbon
ribbontabbar.h
制作者
1.9.8