From 64a5349018d5fbf57abdefe3fc57b63403c1c2c5 Mon Sep 17 00:00:00 2001 From: StefanBruens Date: Thu, 20 Feb 2020 02:29:24 +0100 Subject: [PATCH 1/3] Avoid crash caused by KDE qqc2-desktop-style Workaround/fix for #5488 Also see https://bugs.kde.org/show_bug.cgi?id=417900 --- cura_app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cura_app.py b/cura_app.py index 6149eeeb9a..3c2620bb38 100755 --- a/cura_app.py +++ b/cura_app.py @@ -207,5 +207,11 @@ if Platform.isLinux() and getattr(sys, "frozen", False): import trimesh.exchange.load os.environ["LD_LIBRARY_PATH"] = old_env +# WORKAROUND: CURA-5488 +# When using the KDE qqc2-desktop-style, the UI layout is completely broken, and +# even worse, it crashes when switching to the "Preview" pane. +if Platform.isLinux(): + os.environ["QT_QUICK_CONTROLS_STYLE"] = "material" + app = CuraApplication() app.run() From caa9916cf00ec1c8daf15f1837da3a78e93c5a3c Mon Sep 17 00:00:00 2001 From: StefanBruens Date: Tue, 8 Dec 2020 14:01:18 +0100 Subject: [PATCH 2/3] Fix bug reference --- cura_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura_app.py b/cura_app.py index 3c2620bb38..ad5f7b759d 100755 --- a/cura_app.py +++ b/cura_app.py @@ -207,7 +207,7 @@ if Platform.isLinux() and getattr(sys, "frozen", False): import trimesh.exchange.load os.environ["LD_LIBRARY_PATH"] = old_env -# WORKAROUND: CURA-5488 +# WORKAROUND: Cura#5488 # When using the KDE qqc2-desktop-style, the UI layout is completely broken, and # even worse, it crashes when switching to the "Preview" pane. if Platform.isLinux(): From 8023bee35a952f0ca9b5dce7d2b6aa0faebef9ec Mon Sep 17 00:00:00 2001 From: StefanBruens Date: Tue, 8 Dec 2020 14:53:48 +0100 Subject: [PATCH 3/3] Use 'default' theme instead of 'material' Using 'material' causes some layout issues, while 'default' shows no such issues and also fixes the preview pane crashes. --- cura_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura_app.py b/cura_app.py index ad5f7b759d..4469098666 100755 --- a/cura_app.py +++ b/cura_app.py @@ -211,7 +211,7 @@ if Platform.isLinux() and getattr(sys, "frozen", False): # When using the KDE qqc2-desktop-style, the UI layout is completely broken, and # even worse, it crashes when switching to the "Preview" pane. if Platform.isLinux(): - os.environ["QT_QUICK_CONTROLS_STYLE"] = "material" + os.environ["QT_QUICK_CONTROLS_STYLE"] = "default" app = CuraApplication() app.run()