qt5 apps in antiX
- dolphin_oracle
- Developer
- Posts: 20024
- Joined: Sun Dec 16, 2007 1:17 pm
qt5 apps in antiX
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://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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: qt5 apps in antiX
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
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin
- dolphin_oracle
- Developer
- Posts: 20024
- Joined: Sun Dec 16, 2007 1:17 pm
Re: qt5 apps in antiX
so far as I can tell, yes.Jerry3904 wrote:Same GTK+ versions involved in both OS?
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: qt5 apps in antiX
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"
- dolphin_oracle
- Developer
- Posts: 20024
- Joined: Sun Dec 16, 2007 1:17 pm
Re: qt5 apps in antiX
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: qt5 apps in antiX
Do the icons show in QtCreator when you select from theme?
- dolphin_oracle
- Developer
- Posts: 20024
- Joined: Sun Dec 16, 2007 1:17 pm
Re: qt5 apps in antiX
I don't have an antiX set up with the dev tools. They do in my mx setup.Adrian wrote:Do the icons show in QtCreator when you select from theme?
***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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
- dolphin_oracle
- Developer
- Posts: 20024
- Joined: Sun Dec 16, 2007 1:17 pm
Re: qt5 apps in antiX
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
- dolphin_oracle
- Developer
- Posts: 20024
- Joined: Sun Dec 16, 2007 1:17 pm
Re: qt5 apps in antiX
found it!
thanks to the arch wiki:
https://wiki.archlinux.org/index.php/qt
thanks to the arch wiki:
https://wiki.archlinux.org/index.php/qt
so I faked it. antiX uses the lxde appearance app to set the gtk environment. so results attached: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.
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: qt5 apps in antiX
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
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin