QtCanpool 3.3.0
载入中...
搜索中...
未找到
ribbontabbar.h
浏览该文件的文档.
1
5#pragma once
6
7#include "qxribbon_global.h"
8#include <QMargins>
9#include <QTabBar>
10
12
13class RibbonTabBar : public QTabBar
14{
15 Q_OBJECT
16public:
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
28public Q_SLOTS:
29 void setCurrentIndex(int index);
30protected:
31 virtual QSize tabSizeHint(int index) const override;
32
33 void wheelEvent(QWheelEvent *event) override;
34private:
35 QMargins m_tabMargin;
36};
37
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_RIBBON_END_NAMESPACE
#define QX_RIBBON_BEGIN_NAMESPACE
QColor text