Heijastin

Qt5 and Openbox

Openbox is day by day turning into a relic.

KDE 5 applications lose the theme and the icons in Openbox session of Ubuntu 16. KDE System settings effects nothing. I searched on the Internet and found the solution, but it’s not quite convenient.

Qt5ct

Qt5 and Openbox
Qt5 and Openbox

Qt5ct is quasi equivalent of qt4-qtconfig for Qt5. Today, on Openbox, we need theming the applications through System Settings, LXAppearance and Qt5ct each of them. Wonderful. Openbox is cusotmizable, simple and fast. It’ll be a waste to let it going to be buried.

A better way

I tried LXQt and I saw that it’s stable to daily use. The sole problem is the limitation of the icon choice. It’s practically fixed to Oxygen while selecting the dark panel.

Installing Qt5ct

We need adding a PPA.

$ sudo add-apt-repository ppa:nilarimogard/webupd8 $ sudo apt-get update && sudo apt-get install qt5ct Cite: Configure Qt5 Application Style, Icons, Fonts And More With Qt5ct ~ Web Upd8: Ubuntu / Linux blog

Required setting

vi ~/.profile

Add the line below. To get back KDE settings in KDE session, remove this line.

export QT_QPA_PLATFORMTHEME=qt5ct

Then, type qt5ct on Gmrun or something. I’m normally on Gentoo, but I’m on Ubuntu under some circumstances. Ubuntu 16 is good to use as it is. However, once you try to customize it, it’s fragile.

Tags