Browse Source

added QtWebEngine::initialize()

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
27a8164919
  1. 3
      alethzero/MainWin.cpp

3
alethzero/MainWin.cpp

@ -112,6 +112,7 @@ Main::Main(QWidget *parent) :
{ {
setWindowFlags(Qt::Window); setWindowFlags(Qt::Window);
ui->setupUi(this); ui->setupUi(this);
QtWebEngine::initialize();
g_logPost = [=](string const& s, char const* c) g_logPost = [=](string const& s, char const* c)
{ {
simpleDebugOut(s, c); simpleDebugOut(s, c);
@ -171,7 +172,7 @@ Main::Main(QWidget *parent) :
ui->tabWidget->setTabText(0, ui->webView->title()); ui->tabWidget->setTabText(0, ui->webView->title());
}); });
ui->webView->page()->settings()->setAttribute(QWebEngineSettings::DeveloperExtrasEnabled, true); // ui->webView->page()->settings()->setAttribute(QWebEngineSettings::DeveloperExtrasEnabled, true);
// QWebEngineInspector* inspector = new QWebEngineInspector(); // QWebEngineInspector* inspector = new QWebEngineInspector();
// inspector->setPage(page); // inspector->setPage(page);
readSettings(); readSettings();

Loading…
Cancel
Save