Categories: Ubuntu

How to Install Kvantum to Theme Qt6/Qt5 Apps in Ubuntu

This simple tutorial shows how to install and use Kvantum theme engine to change themes for your Qt5 and Qt6 applications in Ubuntu 20.04 and Ubuntu 23.10.

GNOME Desktop uses GTK toolkit for its applications and KDE/LxQt uses Qt toolkit instead. These apps work on each other desktop environment, but may NOT look native.

To unify the look and feel, Fedora Qt developer team has QGnomePlatform, adwaita-qt, and QAdwaitaDecorations projects to make Qt apps look better in GNOME. So far, only QAdwaitaDecorations is in active development for implementing Adwaita-like window header and border for Qt apps.

Sponsored

For Qt app window color, buttons, and other components, Kvantum is good choice to do the job.

qBittorrent (Qt6) with Kvantum theme in Ubuntu

Many apps have been ported to (and even built with) Qt6, but Ubuntu so far only includes the theme engine in system repositories for Qt5. So I’m here to show you how to install and use the Qt6 version.

Step 1: Install Kvantum theme engine

The popular Papirus icon theme project maintains an Ubuntu PPA that contains the Kvantum packages for both Qt5 and Qt6. So far, it supports Ubuntu 22.04 and Ubuntu 23.10 on amd64 (Intel/AMD) platforms.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:papirus/papirus

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. After adding the PPA, Linux Mint user needs to manually refresh system package cache (it’s automatically done in Ubuntu while adding PPA).

sudo apt update

3. Finally, install the theme engine for both Qt5 and Qt6:

sudo apt install qt5-style-kvantum qt6-style-kvantum

Step 2: Set Environment Variable for Kvantum

Before being able to change Qt app theme through Kvantum, you may either run command to set the environment variable:

export QT_STYLE_OVERRIDE=kvantum

After that, any Qt5/Qt6 apps start from command line in this terminal window will take use the Kvantum theme engine.

To make it permanently, open Home folder, press Ctrl+H to view hidden files and folders. Then, click edit the .profile file, and add new line below in the end:

Sponsored
export QT_STYLE_OVERRIDE=kvantum

For Fedora, Arch, etc, edit .bash_profile or .bash_login file instead. You may add new line export QT_QPA_PLATFORM=xcb for Gnome style header.

Finally, log out and back in to apply change.

Step 3: use Kvantum to change theme

Now, you can search for and open kvantnum manager from either start menu or ‘Activities’ overview depends on your desktop environment.

Finally, go to “Change/Delete Theme” page to select a theme for your Qt apps, and navigate to “Configure Active Theme” page for more detailed options for current them.

The changes apply immediately in the “Kvantum Manager” app window, but other Qt apps need a restart to apply.

Uninstall:

To remove the theme engine, open terminal (Ctrl+Alt+T) and run command:

sudo apt remove --autoremove qt*-style-kvantum

Also remove the Ubuntu PPA by running command:

sudo add-apt-repository --remove ppa:papirus/papirus

You may also remove the export line in the end of .profile file.

The post How to Install Kvantum to Theme Qt6/Qt5 Apps in Ubuntu appeared first on Osgrove.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

3 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

4 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

4 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

5 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

5 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

6 days ago