change webview background color

This commit is contained in:
Malte Jürgens 2022-07-07 21:48:23 +02:00
parent db0f3233b2
commit 81317fd43d
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
1 changed files with 2 additions and 0 deletions

View File

@ -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,