So your here to learn how to enable plugins in the QWebView that you’ve added to your .ui file, so without a further ado, here you go:
- #include <QtWebKit>
- //make sure the correct headers are included so you can use globalSettings.
- #include "widget.h"
- #include "ui_widget.h"
- ui(new Ui::Widget)
- {
- ui->setupUi(this);
- //Create the ui.
- //And, just enable plug-ins globally.
- }
- Widget::~Widget()
- {
- delete ui;
- }

