Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238091 - app-emulation/virtualbox-bin-2.0.2 does not use the system-default Qt4 theme
Summary: app-emulation/virtualbox-bin-2.0.2 does not use the system-default Qt4 theme
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 09:47 UTC by Alexey Charkov
Modified: 2009-03-11 17:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Charkov 2008-09-19 09:47:12 UTC
Although the new version of VirtualBox (2.x) uses Qt4, it does not link against a system Qt, but rather against an own version, which results in not making use of the global Qt4 theme. The issue can be overcome if system libQtCore.so.4 and libQtGui.so.4 are linked in place of libVBoxQt{Core,Gui}.so.4 in the VirtualBox directory.

Reproducible: Always

Steps to Reproduce:
Comment 1 Wormo (RETIRED) gentoo-dev 2008-09-19 23:23:11 UTC
Binary packages tend to be a maintenance hassle. Let's see what the maintainers want to do about outside dependencies vs bundled libraries.
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2008-09-20 08:56:42 UTC
Not sure about this though from knowing some parts of Qt, I think this is not fully possible if one doesn't have the same major version (4.4, 4.3,...). Though feel free to test and report back, I bet Alessio will thank you for test reports :)
Comment 3 Alexey Charkov 2008-09-20 11:18:07 UTC
It works for me with Qt 4.4.1 (by symlinking the libraries). I did not notice any misbehaviour. Apparently, the shipped version is 4.3.3, though:

# strings /opt/VirtualBox/libVBoxQtCore.so.4.backup | egrep ^qt
qt_global_mutexpool
qt_application_thread_id
qt_signal_spy_callback_set
qt_startup_hook
qt_allTopLevelWidgets
qt_removeObject
qt_addObject
qt_disable_lowpriority_timers
qt_demopath=/home/vbox/Qt-4.3.3-stdc++6-amd64/demos
qt_xmplpath=/home/vbox/Qt-4.3.3-stdc++6-amd64/examples
qt_stngpath=/etc/xdg
qt_trnspath=/home/vbox/Qt-4.3.3-stdc++6-amd64/translations
qt_datapath=/home/vbox/Qt-4.3.3-stdc++6-amd64
qt_plugpath=/home/vbox/Qt-4.3.3-stdc++6-amd64/plugins
qt_binspath=/home/vbox/Qt-4.3.3-stdc++6-amd64/bin
qt_libspath=/home/vbox/Qt-4.3.3-stdc++6-amd64/lib
qt_hdrspath=/home/vbox/Qt-4.3.3-stdc++6-amd64/include
qt_docspath=/home/vbox/Qt-4.3.3-stdc++6-amd64/doc
qt_prfxpath=/home/vbox/Qt-4.3.3-stdc++6-amd64
qt_lcnsprod=Desktop
qt_lcnsuser=Dmitry Kuminov
qt_plugin_instance
qt_plugin_query_verification_data

In any case, Trolltech people do not seem to be very fond of breaking ABIs, so symlinking may well be an option.
Comment 4 Vetoshkin Nikita 2008-09-26 16:50:22 UTC
Emerged QGtkStyle, made links to system Qt libs - works well and looks nice =)
Comment 5 Markus Ullmann (RETIRED) gentoo-dev 2009-03-11 07:42:33 UTC
So as they somehow broke stuff with 4.5, I'm still not liking that idea ;) (Look at kde4 mess for references), let's close this as a local workaround.
Comment 6 Alexey Charkov 2009-03-11 17:26:01 UTC
Frankly speaking, this still works perfectly for me with virtualbox-bin-2.1.4 and qt-4.5.

Could it be a USE-flag (e.g. USE=system-qt4) with a big 'UNSUPPORTED' banner in the description so that people like me do not have to manually recreate symlinks after each emerge of VirtualBox?