DtkWidget 5.6.0.2
DTK Widget module
dcommandlinkbutton.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DCOMMANDLINKBUTTON_H
6#define DCOMMANDLINKBUTTON_H
7
8#include <dtkwidget_global.h>
9#include <QAbstractButton>
10
11DWIDGET_BEGIN_NAMESPACE
12class DStyleOptionButton;
13
14class DCommandLinkButton : public QAbstractButton
15{
16 Q_OBJECT
17
18public:
19 explicit DCommandLinkButton(const QString text, QWidget *parent = nullptr);
20
21 QSize sizeHint() const override;
22
23protected:
24 void initStyleOption(DStyleOptionButton *option) const;
25 void paintEvent(QPaintEvent *e) override;
26};
27
28DWIDGET_END_NAMESPACE
29
30#endif // DCOMMANDLINKBUTTON_H
DCommandLinkButton 一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,...
Definition: dcommandlinkbutton.h:15
Dtk 样式统一的按钮样式配置.
Definition: dstyleoption.h:55