VirtualBox 7.2

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
siamhie
Global Moderator
Posts: 3692
Joined: Fri Aug 20, 2021 5:45 pm

Re: VirtualBox 7.2

#11 Post by siamhie »

BV206 wrote: Thu Aug 14, 2025 7:43 pm
BV206 wrote: Thu Aug 14, 2025 1:29 pm I thougt maybe it was a configuration problem ...
Yep. The VB 7.2 .deb package is Qt6 and MX comes with QT PLATFORMTHEME settings set to gtk2. I fixed that. Don't know if it will break something else.

I don't know if you might have the qt6gtk2 package installed.
Package: qt6gtk2
Version: 0.4-1~mx23
State: installed
Automatically installed: yes
Multi-Arch: same
Priority: optional
Section: x11
Maintainer: Steven Pusser <stevep@mxlinux.org>

To enable it for all Qt applications, export QT_QPA_PLATFORMTHEME=qt6gtk2 or 'gtk2', 'qt5gtk2' also work for compatibility reasons.
To avoid visual bugs, ensure that the environment variable QT_STYLE_OVERRIDE is not set before usage.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

DeepDayze
Posts: 174
Joined: Tue Jan 18, 2022 3:34 pm

Re: VirtualBox 7.2

#12 Post by DeepDayze »

BV206 wrote: Thu Aug 14, 2025 7:43 pm
BV206 wrote: Thu Aug 14, 2025 1:29 pm I thougt maybe it was a configuration problem ...
Yep. The VB 7.2 .deb package is Qt6 and MX comes with QT PLATFORMTHEME settings set to gtk2. I fixed that. Don't know if it will break something else.
Seems newer Qt6 apps now don't seem to run if you are using any gtk2 based theme. As an aside I had this sort of issue on MX-23.6 as the latest Brave and Vivaldi browsers also fail to run if you have a gtk2 theme, so this may mean you'd have to change themes. I installed Fluxbox and those browsers open on there and not in Plasma 5, so this may confirm your issue with the new VB.
Real Men Use Linux

BV206
Posts: 564
Joined: Sat Mar 09, 2019 10:55 am

Re: VirtualBox 7.2

#13 Post by BV206 »

qt6gtk2 is already installed. Here are the packages that MX 23.6 Xfce ISO has that begin with qt:

Code: Select all

ii  qt-heif-image-plugin                  0.3.3-1~mx23                           amd64        Qt 5 Plugin for HEIF Images
ii  qt5-gtk-platformtheme:amd64           5.15.8+dfsg-11+deb12u2                 amd64        Qt 5 GTK+ 3 platform theme
ii  qt5-gtk2-platformtheme:amd64          5.0.0+git23.g335dbec-4+b7              amd64        Qt 5 extra widget styles - GTK+ 2 Platform theme
ii  qt5-image-formats-plugins:amd64       5.15.8-2                               amd64        Qt 5 Image Formats module
ii  qt5-style-plugin-cleanlooks:amd64     5.0.0+git23.g335dbec-4+b7              amd64        Qt 5 extra widget styles - Cleanlooks
ii  qt5-style-plugin-motif:amd64          5.0.0+git23.g335dbec-4+b7              amd64        Qt 5 extra widget styles - Motif
ii  qt5-style-plugin-plastique:amd64      5.0.0+git23.g335dbec-4+b7              amd64        Qt 5 extra widget styles - Plastique
ii  qt5-style-plugins:amd64               5.0.0+git23.g335dbec-4+b7              amd64        Qt 5 extra widget styles
ii  qt6-gtk-platformtheme:amd64           6.4.2+dfsg-10                          amd64        Qt 6 GTK+ 3 platform theme
ii  qt6-translations-l10n                 6.4.2-1                                all          translations for Qt 6
ii  qt6gtk2:amd64                         0.3-0.1~mx23+1                         amd64        GTK 2 integration plugins for Qt6
Since I don't know crap, I thought maybe MX needed qt6ct or qt5ct so VB could recognize the font or some other setting they changed. It seems like I had problems with qt apps several years ago and went back to Linux Mint and everything worked.

I searched for PLATFORMTHEME in the config files in /etc and found
/etc/X11/Xsession.d/56xfce4-qtconfig
It has comments:
#set qt environment variables to follow user chosen platform
#default plugin is gtk2
#$HOME/.config/MX-Linux/qt_plugin.conf can hold a user settable value

I created a ~/.config/MX-Linux/qt_plugin.conf that only contains
qt6ct
Then I installed qt6ct, rebooted, ran qt6ct to select the fonts and icon theme and then VB worked.

Then I remembered that in the past some programs needed a ~/.gtkrc-2.0 file for gtk2 settings. I don't know if that is still true. MX 23 doesn't ship with it.

BV206
Posts: 564
Joined: Sat Mar 09, 2019 10:55 am

Re: VirtualBox 7.2

#14 Post by BV206 »

BV206 wrote: Fri Aug 15, 2025 10:58 am I created a ~/.config/MX-Linux/qt_plugin.conf that only contains
qt6ct
I changed it from qt6ct to qt6gtk2, uninstalled qt6ct ,rebooted and that also works.

User avatar
siamhie
Global Moderator
Posts: 3692
Joined: Fri Aug 20, 2021 5:45 pm

Re: VirtualBox 7.2

#15 Post by siamhie »

BV206 wrote: Fri Aug 15, 2025 12:59 pm
BV206 wrote: Fri Aug 15, 2025 10:58 am I created a ~/.config/MX-Linux/qt_plugin.conf that only contains
qt6ct
I changed it from qt6ct to qt6gtk2, uninstalled qt6ct ,rebooted and that also works.
I recall having to do that for a program awhile back in fluxbox. (can't remember the name)

My startup file went from

Code: Select all

# export Qt variables
export QT_QPA_PLATFORMTHEME=gtk2
export QT_PLATFORMTHEME=gtk2
export QT_PLATFORM_PLUGIN=gtk2
to

Code: Select all

# export Qt variables
export QT_QPA_PLATFORMTHEME=qt6gtk2
export QT_PLATFORMTHEME=qt6gtk2
export QT_PLATFORM_PLUGIN=qt6gtk2
I do remember it messing with some of the other gtk2 themed programs.

That's "Life in a Window Manager". (Hey, that could be my new signature :happy: )
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Post Reply

Return to “MX Help”