How to use qwebkitplatformplugin?
-
how to use qwebkitplatformplugin in a QWebView?
I have the following code:
@#include <QWebKitPlatformPlugin>
MainWindow::MainWindow(QWidget *parent, bool new) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);webView = new QWebView; ui->webViewLay->addWidget(webView); webView->setHtml("<p>test</p>");
}@
but found no example of how to use extensions.
-
Within this API has several extensions such as SpellChecker and Notifications, I would like to know how to use in my WebView.
How to use this class? :
@class QWebKitPlatformPlugin {
public:
virtual ~QWebKitPlatformPlugin() {}enum Extension { MultipleSelections, Notifications, Haptics, TouchInteraction, FullScreenVideoPlayer, SpellChecker }; virtual bool supportsExtension(Extension) const = 0; virtual QObject* createExtension(Extension) const = 0;
};@
note: There is no documentation on the official website. -
could anyone give a help?
-
Please?
-
Hello Guilherme,
did you get it to work? Have same trouble to load it.... -
Hello Guilherme,
did you get it to work? Have same trouble to load it.... -
AcerExtensa this work only VisualStudio (maybe only in vs2013). MingW don't have support :(
-
AcerExtensa this work only VisualStudio (maybe only in vs2013). MingW don't have support :(
-
I have compiled it as static plugin and it works now. MinGW or VS is not relevant
-
I have compiled it as static plugin and it works now. MinGW or VS is not relevant
-
AcerExtensa :) You using SpellCheck? Work fine?
-
AcerExtensa :) You using SpellCheck? Work fine?
-
It has some BUGs, but it looks like internal WebKit or Qt BUGs. But main functionality works fine.
-
It has some BUGs, but it looks like internal WebKit or Qt BUGs. But main functionality works fine.
-
I use QT5.4 with MingW 4.9.1. Could you explain how you compiled the static plugin?
-
I use QT5.4 with MingW 4.9.1. Could you explain how you compiled the static plugin?
-
Sure. I'll be back on wednesday(18.02) and will explain it.
-
Sure. I'll be back on wednesday(18.02) and will explain it.
-
AcerExtensa in QtCreator clicked with right button in project > selected "Build".
Create .lib and .dll :)
-
AcerExtensa in QtCreator clicked with right button in project > selected "Build".
Create .lib and .dll :)