Make Qt Use The GTK Style On XFCE or Xubuntu
I’m a Qt developer and use Xubuntu in my Linux VMs as it is lighter than KDE and doesn’t get in my way (unlike Unity).
By default there is a problem with QGtkStyle which stops it correctly picking up the GTK theme as XFCE does not save it in the usual place.
To fix this we can use a simple script:
Put this script into $HOME/.config/xfce4/xinitrc
and ensure it is executable by running chmod +x $HOME/.config/xfce4/xinitrc
.