From 669dd7ec427364a78c275d87ed1ef9adad63b5ac Mon Sep 17 00:00:00 2001 From: tmichela Date: Thu, 8 Aug 2024 10:47:18 +0200 Subject: [PATCH] fix loading data with webViewer --- damnit/gui/main_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/damnit/gui/main_window.py b/damnit/gui/main_window.py index 7fad4bd7..d38734a1 100644 --- a/damnit/gui/main_window.py +++ b/damnit/gui/main_window.py @@ -1,4 +1,5 @@ import logging +import os import shelve import sys import time @@ -1040,10 +1041,14 @@ def prompt_setup_db_and_backend(context_dir: Path, prop_no=None, parent=None): def run_app(context_dir, software_opengl=False, connect_to_kafka=True): + QtWidgets.QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) QtWidgets.QApplication.setAttribute( QtCore.Qt.ApplicationAttribute.AA_DontUseNativeMenuBar, ) + # Required for the WebViewer to load pages + os.environ['QTWEBENGINE_CHROMIUM_FLAGS'] = '--no-sandbox' + if software_opengl: QtWidgets.QApplication.setAttribute( Qt.AA_UseSoftwareOpenGL