MFC/Win32里面调用qtwebkit
可以用qtwinmigrate
文档在:http://doc.qt.digia.com/solutions/4/qtwinmigrate/index.html
下载在:https://qt.gitorious.org/qt-solutions
qtwinmigrate没有独立发布,它现在是作为qt-solutions的一部分在发行。
例子:
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_LBUTTONUP: { QWinWidget w(hWnd, 0, 0); w.showCentered(); QMessageBox mb("Qt on Win32 - modal", "Is this dialog modal?", QMessageBox::NoIcon, QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape, QMessageBox::NoButton, &w); int result = mb.exec(); Q_UNUSED(result); } break;
Good luck.