XnView MP Linux 1.11.4 beta 2 for Qt6

Moderator: xnview

anonsan
Posts: 11
Joined: Fri Jan 20, 2023 5:29 am

XnView MP Linux 1.11.4 beta 2 for Qt6

Post by anonsan »

On Linux XnView doesn't use the same file dialogs as other Qt applications in the system, at least not on KDE or LXQt. I was hoping Qt6 would fix this but it doesn't look like it. The icon theme is also wrong. Can it be fixed?
badfiledialog.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 48082
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP (Windows + Linux) 1.11.4 beta 2 for Qt6

Post by xnview »

same with 1.11.2? you means which Qt apps?
Pierre.
anonsan
Posts: 11
Joined: Fri Jan 20, 2023 5:29 am

Re: XnView MP Linux 1.11.4 beta 2 for Qt6

Post by anonsan »

Same with all Qt5-based versions. Like I said, I figured this was a Qt5 problem because support for Qt5 in KDE is kinda dead at this point and KeePassXC (also still Qt5-based) also has this problem but qBittorrent for example (Qt6-based) doesn’t.
User avatar
xnview
Author of XnView
Posts: 48082
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP Linux 1.11.4 beta 2 for Qt6

Post by xnview »

do you have tried to set

Code: Select all

QT_QPA_PLATFORMTHEME=xdgdesktopportal
which distribution do you use?
Pierre.
anonsan
Posts: 11
Joined: Fri Jan 20, 2023 5:29 am

Re: XnView MP Linux 1.11.4 beta 2 for Qt6

Post by anonsan »

xnview wrote: Tue May 26, 2026 7:21 am do you have tried to set

Code: Select all

QT_QPA_PLATFORMTHEME=xdgdesktopportal
which distribution do you use?
This fixes the file dialog but not the icon theme in XnView itself. (See below.)
Note also that both qBittorrent and Audacious use the correct file dialog with QT_QPA_PLATFORMTHEME unset.

Distro is Debian Sid.
icons.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 48082
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP Linux 1.11.4 beta 2 for Qt6

Post by xnview »

which version

Code: Select all

plasmashell --version
?
Pierre.
anonsan
Posts: 11
Joined: Fri Jan 20, 2023 5:29 am

Re: XnView MP Linux 1.11.4 beta 2 for Qt6

Post by anonsan »

I've been experimenting a little. The problem is the use of bundled Qt instead of system Qt. The bundled Qt comes with the gtk3 and xdgdesktopportal platform themes, and KDEPlasmaPlatformTheme6.so which provides the kde platform theme is not considered although it exists in the system. (At /usr/lib/x86_64-linux-gnu/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so in Debian's case.)

If I wipe qt.conf and all the Qt libraries from the bundled lib/ directory and let system Qt libraries be loaded instead, then the file dialog and icons all look as expected. The application itself also works fine.
xnview wrote: Tue May 26, 2026 3:36 pm which version

Code: Select all

plasmashell --version
?
plasmashell 6.6.5