change webview background color
This commit is contained in:
parent
db0f3233b2
commit
81317fd43d
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "virtmic.h"
|
#include "virtmic.h"
|
||||||
|
|
||||||
|
#include <QColor>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QGridLayout>
|
#include <QGridLayout>
|
||||||
|
@ -48,6 +49,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
|
||||||
|
|
||||||
void MainWindow::setupWebView() {
|
void MainWindow::setupWebView() {
|
||||||
m_webView = new QWebEngineView(this);
|
m_webView = new QWebEngineView(this);
|
||||||
|
m_webView->page()->setBackgroundColor(QColor("#202225"));
|
||||||
|
|
||||||
// TODO: Custom QWebEnginePage that implements acceptNavigationRequest
|
// TODO: Custom QWebEnginePage that implements acceptNavigationRequest
|
||||||
connect(m_webView->page(), &QWebEnginePage::featurePermissionRequested, this,
|
connect(m_webView->page(), &QWebEnginePage::featurePermissionRequested, this,
|
||||||
|
|
Loading…
Reference in a new issue