retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

retext does not apply QT style override #615

Closed rohshall closed 1 year ago

rohshall commented 1 year ago

I have environment with: QT_STYLE_OVERRIDE=kvantum

QApplication: invalid style override 'kvantum' passed, ignoring it. Available styles: kvantum-dark, kvantum, Windows, Fusion Using configuration file: /home/salilw/.config/ReText project/ReText.conf

$ retext -v QApplication: invalid style override 'kvantum' passed, ignoring it. Available styles: kvantum-dark, kvantum, Windows, Fusion ReText 8.0.0

$ uname -a Linux salil-xps139360 6.2.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 13 Mar 2023 17:02:08 +0000 x86_64 GNU/Linux It's Arch Linux.

mitya57 commented 1 year ago

I cannot reproduce this. Although, I am using Debian, not Arch Linux. Debian does not have Kvantum packaged for Qt 6, so I complied it myself:

Screenshot

It looks like Qt fails loading the plugin for some reason. Maybe it needs some shared libraries which are not installed? Can you try checking it with ldd? Also, does it work with other Qt 6 applications (e.g. Designer or Assistant)?

rohshall commented 1 year ago

Thank you @mitya57 - it's not a bug. I had qt5ct installed, not qt6ct. After installing qt6ct, my style got applied. Thanks a lot, again!