https://bugs.kde.org/show_bug.cgi?id=371564

            Bug ID: 371564
           Summary: [Qt Linux Deployment] Qt binaries doesn't use KDE
                    style / file dialogs
           Product: frameworks-frameworkintegration
           Version: 5.26.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: magis...@gmail.com

I use openSUSE Leap 42.1 as my main system with KDE Plasma 5.5.5. It has Qt
5.5.1 installed system-wide. Btw I use Qt 5.6.2 from Qt online installer for my
apps.

Problem: all apps built with 5.6 use fusion style and qt file dialogs. So I
can't get native KDE look'n'feel. But on GTK based DE's all works fine.
I use startup script from Qt docs:
https://doc.qt.io/qt-5/linux-deployment.html.

As a workaround I use this in main.cpp:
QStringList list = QCoreApplication::libraryPaths();
list.append("/usr/lib64/qt5/plugins");
list.append("/usr/lib/x86_64-linux-gnu/qt5/plugins/");
QCoreApplication::setLibraryPaths(list);

This hack works well on my machine, but on Kubuntu 16.10 with system-wide Qt
5.6.1 my program crashes (backtrace in attachment).

Question: is there a convenient way to load system-wide style plugins? Can it
be as simple as load native GTK style?

P.S. QTBUG for reference: https://bugreports.qt.io/browse/QTBUG-56683


Reproducible: Always

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to