diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -44,6 +44,8 @@ KF5::Declarative KF5::IconThemes KF5::Crash + + Qt5::Quick ) IF(APPLE) target_link_libraries(kdevelop "-framework CoreFoundation") diff --git a/app/main.cpp b/app/main.cpp --- a/app/main.cpp +++ b/app/main.cpp @@ -49,6 +49,8 @@ #include #include +#include + #include #include #include @@ -304,6 +306,13 @@ QElapsedTimer timer; timer.start(); +#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) + // If possible, use the Software backend for QQuickWidget (currently used in the + // welcome page plugin). This means we don't need OpenGL at all, avoiding issues + // like https://bugs.kde.org/show_bug.cgi?id=386527. + QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software); +#endif + // TODO: Maybe generalize, add KDEVELOP_STANDALONE build option #if defined(Q_OS_WIN) || defined(Q_OS_MAC) qputenv("KDE_FORK_SLAVES", "1"); // KIO slaves will be forked off instead of being started via DBus