QTextBrowser添加超連接

首先 ui->textBrowser->setOpenExternalLinks(true); 而後添加 ui->textBrowser->append(tr("<html><p><a href=\"%1\">進入列表的設置頁面</a></p></html>").arg(path.left(path.lastIndexOf('/'))));
相關文章
相關標籤/搜索