简体   繁体   English

用pyqt4显示html

[英]show html with pyqt4

print "hellp world" :) 打印“帮助世界” :)

i want to ask you if exist a function or class hwo can show the html code like the browser's jobe 我想问你是否存在一个函数或类,它可以像浏览器的jobe一样显示html代码

thx 谢谢

There is QtWebKit Module within Qt. Qt中有QtWebKit模块 It incorporates webkit rendering engine. 它包含了webkit渲染引擎。 Whereas you can get access to Qt classes using python binding, you can use Qt official manual as help. 尽管您可以使用python绑定访问Qt类,但可以使用Qt官方手册作为帮助。 Qt designer is also included into pyqt - you can try using it to design your application's GUI (I'm almost sure you'll be able to find web browser component or similar there). Qt Designer也包含在pyqt中-您可以尝试使用它来设计应用程序的GUI(我几乎确定您将能够在其中找到Web浏览器组件或类似组件)。

As for using html tags to decorate labels and other components showing text, you can refer to this question. 至于使用html标签装饰标签和其他显示文本的组件,则可以参考问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM