11-19-2017, 04:03 AM | #1 |
Connoisseur
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
|
Calibre and Qt5/GTK theming issues
I'm not sure if this is a Calibre issue or maybe a dependency issue. I recently upgraded to XUbuntu 17.10 which uses Qt 5.9. I have set the CALIBRE_USE_SYSTEM_THEME variable for calibre to use the Gtk/XFCE theme which in my case arc-theme. Note, all my other Qt5 applications including Qt5 Designer, work correctly while using the GTK theme.
A pure binary install from the script as provided on the website here: https://calibre-ebook.com/download_linux doesn't work. The theme is completely broken and there are parts of the menus which I can't access. I initially got this error on Calibre 3.0, and then I uninstalled that, and installed Calibre 3.12, both giving the same error on the system as: Code:
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries. I hope this issue gets fixed sometime. tempura Last edited by tempura; 11-19-2017 at 04:08 AM. |
11-19-2017, 05:05 AM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not possible to fix. Basically Qt themeing only reliably works if you use the system Qt, which the binary calibre acnnot use. So either use your distro provided calibre or use the official binary and no Qt themeing.
|
11-19-2017, 06:20 AM | #3 | |
Connoisseur
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
|
Quote:
Just a minor note from my side, which leaves me puzzled is that how did it work with Qt 5.7 on Ubuntu 17.04. Just wondering is all, this probably does not require a answer. |
|
11-19-2017, 06:51 AM | #4 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's complicated, the involved libraries are not just Qt but also glib, gobject, etc. Only if the Qt versions are compatible and the glib versions are compatible and the versions of a dozen other libraries are compatible will binary themeing work.
|
11-19-2017, 07:14 AM | #5 |
Connoisseur
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
|
That makes sense, in a way. Thanks for answering, @kovid
|
03-19-2018, 01:19 AM | #6 |
Enthusiast
Posts: 49
Karma: 510
Join Date: Sep 2008
Device: PSR505
|
Hi all, kovid
not to necrobump - but that has been a topic that intruiged me for quite some time. just to roll a couple of Ideas here - no intend to ask for a dev change ..but some ideas. 1) if we use the binary version of calibre it will use the internal styling and as I can see from the previous post there is no way to change that except using the distro provided package, and i get the reason ... truly i get it ;-) 2) can we: a) include at least the 2 major "styles" adwaita and breeze in a selection box - even on specific CALIBRE_QT_THEME variable in the binary release? export CALIBRE_QT_THEME="awaita" export CALIBRE_QT_THEME="breeze" that would incorporate the style nicely with 80% (guess) of the desktops and still using the uptodate version of calibre b) piggy back on the idea like the icon sets? something similar to "download" a QT style and apply? so we could for a majority of themeing at the various distros solve that point. since I dont have a win box I dont know how calibre currently loks on Win10 but I assume simlar behaviour there. what you guys think? \Pete |
09-02-2019, 08:13 PM | #7 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Question about QT themeing
Hi,
I'm on Fedora 30. Just installed calibre with the suggested wget. When running calibre I too get the message: QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries. I have no interest in themes. It is suggested to run calibre with no QT themeing. I am QT ignorant so please explain how to do that. Thank you, Dan |
09-02-2019, 10:06 PM | #8 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That message is harmless,it just means Qt fallsback to its native theme, fusion.
|
09-02-2019, 10:48 PM | #9 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Thanks
Thank you
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 3 not applying GTK theme (Linux Mint) | armaggedon51 | Calibre | 6 | 06-17-2017 10:53 AM |
Plugins, Qt4, Qt5, and Calibre 2.x | JSWolf | Plugins | 1 | 08-29-2014 09:08 AM |
Theming the Calibre content server look? | khahoon | Calibre | 0 | 07-21-2013 11:32 PM |
QT5 and image height | Turtle91 | Sigil | 23 | 02-21-2013 01:44 PM |
Gtk frontend for Calibre | nbdarvin | Calibre | 6 | 05-06-2010 12:51 PM |