开发者

How to embed Webkit/Gecko layout engine and start using it for UI?

开发者 https://www.devze.com 2023-03-31 00:18 出处:网络
I dont have much experience with C++ projects like Gecko or Webkit and I\'d like to embed either Gecko or Webkit to a project so that I could construct my UI with HTML and CSS.

I dont have much experience with C++ projects like Gecko or Webkit and I'd like to embed either Gecko or Webkit to a project so that I could construct my UI with HTML and CSS.

Something I'm wondering is开发者_JS百科 that how do I handle events and such in C++ (no JavaScript)? If there's any resourceful tutorial on this topic I'd love to read it.


Qt has a very nice module called QtWebkit that is good for this:

http://doc.qt.nokia.com/latest/qtwebkit.html

You can evaluate Javascript in the webpage from within C++, and pass data from the webpage to your containing C++ program.

Not much use if you're already using something other than Qt, though ;) Maybe a little more info on what you've already done and what you're aiming for?


There is also WebkitGTK which does pretty much the same as qtwebkit. The difference is that GTK is much lighter than QT. It has been ported to mac, linux and windows.

For iOS, there is the native UIWebView.

For Android, you can use android.webkit.WebView.

Or, you can use PhoneGap for a nice wrapper for mobile devices only.

0

精彩评论

暂无评论...
验证码 换一张
取 消