QtWebkit-plugins is a library that provides features for QWebView
, such as SpellCheck/Corretor ortografico
and Notification Web API
.
Read about on:
I tried to compile the code in Windows, but my QWebView
is not working as expected, in other words the SpellCheck
and Notification Web API
do not work, it's like I have not been using QtWebkit-plugins . What can it be?
I read in the documentation that to compile I should run the following command:
$ qmake
$ make && make install
Read more at QtWebkit-plugins repository
As I'm using mingw
I used the command mingw32-make
instead of make
- I compiled the
hunspell
- I copied
hunspell
compiled toC:\Qt5.4.0.4\mingw491_32\bin
andC:\Qt5.4.0.4\mingw491_32\lib
-
I compiled
qtwebkit-plugins
using the command:$ qmake $ mingw32-make && mingw32-make install
-
The files
libqtwebkitpluginsd.a
andqtwebkitplugins.dll
- I copied
libqtwebkitpluginsd.a
toC:\Qt5.4.0.4\mingw491_32\lib
- I copied
qtwebkitplugins.dll
toC:\Qt5.4.0.4\mingw491_32\plugins\webkit
andC:\Qt5.4.0.4\mingw491_32\bin
- In the environment variables I applied this
QT_DEBUG_PLUGINS=1
Then I compiled a simple project that uses QWebView
, so I tested the SpellCheck
( <textarea spellcheck="true"></textarea>
) but did not work.
I tried the Notification Web API
and it also did not work.
How to SpellCheck
and Notification Web API
work?
Note:
When running a project my project with QT_DEBUG_PLUGINS=1
and use Notification Web API
the following message appears:
Found metadata in lib C:/Qt5.4.0/5.4/mingw491_32/plugins/webkit/qtwebkitplugins.dll, metadata=
{
"IID": "org.qtwebkit.QtWebKit.QtWebKitPlugin",
"MetaData": {
},
"className": "QtWebKitPlugin",
"debug": false,
"version": 328704
}
loaded library "C:/Qt5.4.0/5.4/mingw491_32/plugins/webkit/qtwebkitplugins.dll"
QLibraryPrivate::unload succeeded on "C:/Qt5.4.0/5.4/mingw491_32/plugins/webkit/qtwebkitplugins.dll"
QSystemTrayIcon::setVisible: No Icon set
It looks like the dll is loaded, but for some reason it does not work.