.qbttheme doesn't work across different Qt versions. #10916

Open
opened 2026-02-21 21:02:30 -05:00 by deekerman · 6 comments
Owner

Originally created by @jagannatharjun on GitHub (Sep 20, 2020).

.qbttheme is basically a Qt's rcc compiled resources object, this works almost correctly but one big problem is that format seems to differ across different Qt versions that limit qbttheme to be used only with a specific qt version. This is fine on windows, but kinda causing issues for Linux users since there Qt is system provided. It's a bit cumbersome to provide qbttheme for every different Qt version out there.

One possible solution is something like this https://github.com/qbittorrent/qBittorrent/issues/12142
but it's mostly dependent on maintainers' choice I guess.

Originally created by @jagannatharjun on GitHub (Sep 20, 2020). .qbttheme is basically a Qt's rcc compiled resources object, this works almost correctly but one big problem is that format seems to differ across different Qt versions that limit qbttheme to be used only with a specific qt version. This is fine on windows, but kinda causing issues for Linux users since there Qt is system provided. It's a bit cumbersome to provide qbttheme for every different Qt version out there. One possible solution is something like this https://github.com/qbittorrent/qBittorrent/issues/12142 but it's mostly dependent on maintainers' choice I guess.
Author
Owner

@jabbermacy commented on GitHub (Nov 2, 2021):

same issue here, v4.3.3, ZorinOS16, NO theme I try works at all

@jabbermacy commented on GitHub (Nov 2, 2021): same issue here, v4.3.3, ZorinOS16, NO theme I try works at all
Author
Owner

@sparrowrifu commented on GitHub (Nov 16, 2021):

same problem in v4.3.3 on Ubuntu
Screenshot from 2021-11-17 00-50-26

@sparrowrifu commented on GitHub (Nov 16, 2021): same problem in v4.3.3 on Ubuntu ![Screenshot from 2021-11-17 00-50-26](https://user-images.githubusercontent.com/58773516/142048162-d1c78709-ab91-4e48-a863-9ff025703719.png)
Author
Owner

@Martinligabue commented on GitHub (Sep 13, 2022):

Flatpak version is working

@Martinligabue commented on GitHub (Sep 13, 2022): Flatpak version is working
Author
Owner

@b-user commented on GitHub (Dec 11, 2022):

.qbttheme is basically a Qt's rcc compiled resources object, this works almost correctly but one big problem is that format
seems to differ across different Qt versions that limit qbttheme to be used only with a specific qt version.

as far as I know there are few variant:
Qt Resource Compiler
--format-version The RCC format version to write (1, 2, 3)
--compress-algo Compress input files using algorithm (zstd, zlib, none).
PS. Zstandard compression requires format version 3.

qBittorrent 4.5.0 (build for windows) does not support Zstandard compression: "Failed to load UI theme from file: "C:_QbIT\zstd-v3.qbtheme"
I have tested all format version (1,2,3 ); (with zlib compression and "none" compression) on ubuntu-22.10-desktop-amd64.iso livecd & elementaryos-6.1-stable.20211218-rc.iso (qBittorrent 4.5.0, AppImage (lt20) from fosshub) and windows 10/11.
All work perfectly.

It seems to me that the problem is not in the version nor compression of the rcc.

@b-user commented on GitHub (Dec 11, 2022): > .qbttheme is basically a Qt's rcc compiled resources object, this works almost correctly but one big problem is that format seems to differ across different Qt versions that limit qbttheme to be used only with a specific qt version. as far as I know there are few variant: Qt Resource Compiler --format-version <number> The RCC format version to write (1, 2, 3) --compress-algo <algo> Compress input files using algorithm <algo> (zstd, zlib, none). PS. Zstandard compression requires format version 3. qBittorrent 4.5.0 (build for windows) does not support Zstandard compression: "Failed to load UI theme from file: "C:\_QbIT\zstd-v3.qbtheme" I have tested all format version (1,2,3 ); (with zlib compression and "none" compression) on ubuntu-22.10-desktop-amd64.iso livecd & elementaryos-6.1-stable.20211218-rc.iso (qBittorrent 4.5.0, AppImage (lt20) from fosshub) and windows 10/11. All work perfectly. It seems to me that the problem is not in the version nor compression of the rcc.
Author
Owner

@SolidGlenn commented on GitHub (Apr 11, 2023):

It wont work directly by pressing apply;
You just need to restart.

Confirmed in v4.4.1 (64-bit)
image

@SolidGlenn commented on GitHub (Apr 11, 2023): It wont work directly by pressing apply; You just need to restart. Confirmed in v4.4.1 (64-bit) ![image](https://user-images.githubusercontent.com/71635163/231254653-43fb8c5a-3ad0-4199-9566-7b58327e85c6.png)
Author
Owner

@Kenny-Dave commented on GitHub (Dec 15, 2023):

It wont work directly by pressing apply; You just need to restart.

Works for me in Mint Cinnamon.

@Kenny-Dave commented on GitHub (Dec 15, 2023): > It wont work directly by pressing apply; You just need to restart. Works for me in Mint Cinnamon.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#10916
No description provided.