Fluent-Qt

基礎輸入

HyperlinkButton 超連結按鈕

超連結樣式的按鈕,點擊後會開啟目標網址。

範例

HyperlinkButton 超連結按鈕: 開啟網址

用法

開啟網址

使用 setUrl() 設定目標網址,點擊時透過 QDesktopServices 開啟;呼叫 setShowUnderline(true) 可在懸停時顯示底線。圖示選項遵循 Button。

#include <FluentQt/BasicInput.h>
using namespace fluent::basicinput;

auto* link = new HyperlinkButton("calvinhxx/Fluent-Qt", this);
link->setUrl(QUrl("https://github.com/calvinhxx/Fluent-Qt"));