An Internet browser Qt4 widget?

2019-09-01 16:02发布

问题:

I'm want to show in the GUI a small box (400x85) that shows in an HTML file over the web. The QtWebKit class got his QWebView widget, but the whole QtWebKit class is VERY heavy, weights 16MB, and slows the init of the application in three seconds.

It's not really necessary to load the whole QtWebKit class just to show an HTML page. It is possible to use IE's built in web engine? (Through an ActiveX Object or something?)

回答1:

You can use Internet Explorer via ActiveQT. There is a c++ example in "yourqtdir\4.8.0\examples\activeqt\webbrowser".