In the Google Chrome each tab (or window/gui) is a different process (not only the tabs, but also plugins, extensions, etc.).

How can I make something like multi-process in Qt+WebKit?

Note: No need to be multi-threaded or multiple-process, only something that can be equivalent

Each time I open a new window with QWebView::createWindow (or QWebPage::createWindow) I like to move (or create) the QWebPage/QWebFrame in a process (or thread) different.

How to do this? thanks

[edit]

What I like is that each QWebView (or QWebPage, QWebFrame, etc.) runs on a process (or something like that) separate (like google chrome).

[edit]

In QML, projects with QtQuick2.0 and QtWebkit3.0 use a process called qtwebprocess, this would be something useful for my project (my project is not QML)?

有帮助吗?

解决方案

You might have to code it yourself. WebKit is not Chrome, and a lot of Chrome has nothing to do with WebKit. They basically just use WebKit as a HTML/CSS layout engine, but not most of the rest of WebKit.

If you want multiple processes, you will have to spawn multiple processes, each of which uses WebKit to render the specified page, and then set up the necessary inter-process communication for them to work together, and basically just code it yourself. WebKit is not a magic wand you can just wave to write your code for you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top