gpt4 book ai didi

c++ - 从 QT 中的字符串显示(呈现)HTML

转载 作者:太空狗 更新时间:2023-10-29 15:33:45 27 4
gpt4 key购买 nike

我在 QString 中有 html,我可以使用什么小部件来显示它?(QWebView 不是必需的,因为我不上网)

最佳答案

QWebView s setHtml() :

The QWebView class provides a widget that is used to view and edit web documents.

在 Qt 中,QWebView 是为您呈现页面的小部件 - 如果您不需要它提供的网络功能,请不要使用它们。

关于c++ - 从 QT 中的字符串显示(呈现)HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2709487/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com