This is the code which embeds webkit inside a widget. Only problem is plugins not loaded. there are qwebobjectplugin.cpp and qobjectpluginconnector.cpp files in API of webkit. But I don't know how to use these two files and classes inside it to enable plugin.
#include <qwebpage.h>
#include <qwebframe.h>
#include <qwebsettings.h>
.
.
.
QWebSettings settings = QWebSettings::global();
settings.setAttribute(QWebSettings::PluginsEnabled);
QWebSettings::setGlobal(settings);
QUrl url
("http://www.yahoo.com");
page= new QWebPage(this);
page->open(url);
show();
#include <qwebpage.h>
#include <qwebframe.h>
#include <qwebsettings.h>
.
.
.
QWebSettings settings = QWebSettings::global();
settings.setAttribute(QWebSettings::PluginsEnabled);
QWebSettings::setGlobal(settings);
QUrl url("http://www.yahoo.com");
page= new QWebPage(this);
page->open(url);
show();
To copy to clipboard, switch view to plain text mode
Kindly help if there is a way to include plugin. I can provide the code for qwebobjectplugin.cpp and qobjectpluginconnector.cpp .
Bookmarks