Bug 371564

Summary: [Qt Linux Deployment] Qt binaries doesn't use KDE style / file dialogs
Product: [Frameworks and Libraries] frameworks-frameworkintegration Reporter: magist3r
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.26.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace log

Description magist3r 2016-10-24 10:38:30 UTC
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
Comment 1 magist3r 2016-10-24 10:39:03 UTC
Created attachment 101736 [details]
backtrace log
Comment 2 Justin Zobel 2022-10-26 03:07:06 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-11-10 05:12:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-11-25 05:22:51 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!