5#ifndef QXNAVIGATIONBAR_H
6#define QXNAVIGATIONBAR_H
10#include <QtCore/QSize>
12#include <QtWidgets/QWidget>
22class QxNavigationBarPrivate;
39 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
40 Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize)
46 int addItem(
const QIcon &icon,
const QString &
text);
48 void insertItem(
int index,
const QIcon &icon,
const QString &
text);
50 void removeItem(
int index);
57 int currentIndex()
const;
58 QString itemText(
int index)
const;
59 QIcon itemIcon(
int index)
const;
60 bool isItemEnabled(
int index)
const;
63 QSize iconSize()
const;
69 QToolButton *
button(
int index)
const;
73 void setCurrentIndex(
int index);
74 void setItemText(
int index,
const QString &
text);
75 void setItemIcon(
int index,
const QIcon &icon);
76 void setItemEnabled(
int index,
bool enabled);
77 void setItemToolTip(
int index,
const QString &toolTip);
78 void setIconSize(
const QSize &size);
A vertical rail of exclusive, checkable entries.
void currentChanged(int index)
Emitted when the selection moves: on a click, on an explicit setCurrentIndex(), and also when an entr...
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PRIVATE(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_APP_BEGIN_NAMESPACE