qt5 apps in antiX

Message
Author
User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

qt5 apps in antiX

#1 Post by dolphin_oracle »

so what started as a thread over on the antiX boards has got me curious if there is anything I can do to my mx-tool apps that are appropriate to make them work better on antiX. I'm assuming I might be missing a dependency, but I don't know what it is. Any thoughts?

http://antix.freeforums.org/viewtopic.php?f=16&t=6792

Here's a screenie of mx-compton manager that illustrates the problem. Lack of window titles and missing icons. In this case, the icons are gtk-theme icons, and they do exist.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Administrator
Posts: 21960
Joined: Wed Jul 19, 2006 6:13 am

Re: qt5 apps in antiX

#2 Post by Jerry3904 »

Same GTK+ versions involved in both OS?
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

Re: qt5 apps in antiX

#3 Post by dolphin_oracle »

Jerry3904 wrote:Same GTK+ versions involved in both OS?
so far as I can tell, yes.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Adrian
Developer
Posts: 8269
Joined: Wed Jul 12, 2006 1:42 am

Re: qt5 apps in antiX

#4 Post by Adrian »

It might be a context issue, do you run it as root, how do you launch it? I found that launching app with "su-to-root -c appname" picks up a different theme than "sudo appname"

User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

Re: qt5 apps in antiX

#5 Post by dolphin_oracle »

Adrian wrote:It might be a context issue, do you run it as root, how do you launch it? I found that launching app with "su-to-root -c appname" picks up a different theme than "sudo appname"

nice thought. mx-compton runs as a regular user though.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Adrian
Developer
Posts: 8269
Joined: Wed Jul 12, 2006 1:42 am

Re: qt5 apps in antiX

#6 Post by Adrian »

Do the icons show in QtCreator when you select from theme?

User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

Re: qt5 apps in antiX

#7 Post by dolphin_oracle »

Adrian wrote:Do the icons show in QtCreator when you select from theme?
I don't have an antiX set up with the dev tools. They do in my mx setup.

***yep, they are there in my mx dev setup.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

Re: qt5 apps in antiX

#8 Post by dolphin_oracle »

just setup the usual qt dev environment on antiX...the icon definitions don't quite match from mx to antix. screenies...
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dolphin_oracle
Developer
Posts: 20024
Joined: Sun Dec 16, 2007 1:17 pm

Re: qt5 apps in antiX

#9 Post by dolphin_oracle »

found it!

thanks to the arch wiki:

https://wiki.archlinux.org/index.php/qt
Configuration of Qt5 apps under environments other than KDE Plasma
Unlike Qt4, Qt5 doesn't ship a qtconfig utility to configure fonts, icons or styles. Instead, it will try to use the settings from the running DE. In KDE Plasma or GNOME this works well, but in other less popular DEs or WM it can lead to missing icons in Qt5 applications. One way to solve this is to fake the running desktop environment by setting XDG_CURRENT_DESKTOP=KDE or GNOME, and then using the corresponding configuration application to set the desired icon set.
Another solution is provided by the qt5ct package, which provides a DE independent Qt5 QPA and a configuration utility. After installing the package, run qt5ct to set an icon theme, and set the environment variable QT_QPA_PLATFORMTHEME="qt5ct" so that the settings are picked up by Qt applications. Alternatively, use --platformtheme qt5ct as argument to the Qt5 application.
so I faked it. antiX uses the lxde appearance app to set the gtk environment. so results attached:
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Administrator
Posts: 21960
Joined: Wed Jul 19, 2006 6:13 am

Re: qt5 apps in antiX

#10 Post by Jerry3904 »

Nicely done!
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “antiX”