![]() |
#1 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,252
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Plugins, Qt4, Qt5, and Calibre 2.x
Kovid, can you make the next version of Calibre 2.x refuse to install/try to run a plugin if it doesn't have code for Qt5? This way it would stop people from trying to run a plugin that simply will never work with Calibre 2.x. A good example of this is trying to run the iOS Reader Application plugin that's not Qt5 compatible. Thanks.
|
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,396
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
As far as installing, all it can do is look for an attempt to import PyQt5 modules: which is still no guarantee that the plugin is going to function. Then you have plugins that don't use GUI widgets at all, so you don't want to exclude them by requiring a PyQt5 module import. You also can't deny installation to plugins that try to import PyQt4 since plugins that strive for backward compatibility need to try and import those. So you'd be left looking for plugins that try to import BOTH PyQt4 AND PyQt5, which would once again foil plugins that don't use GUI widgets (and still not guarantee the plugin will function correctly). Even checking to see whether a plugin was a GUI Interface plugin wouldn't really help since even onImport plugins can have custom gui configs. Anything trying to automatically determine whether to block/allow the installation of a plugin would need to heuristically parse almost all of a plugin's code in some way. I think it's just best for the user to check on a plugin's compatibility themselves rather than enter that particular rat's nest. Last edited by DiapDealer; 08-29-2014 at 09:25 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Listing of QT5 versions of Plugins | PeterT | Plugins | 20 | 07-23-2014 11:22 PM |
calibre plugins | whizbo | Calibre | 3 | 09-20-2013 04:08 PM |
QT5 and image height | Turtle91 | Sigil | 23 | 02-21-2013 01:44 PM |
Calibre Portable like the Calibre on PC (espec. settings and plugins)? | manawydan | Devices | 6 | 01-23-2013 06:45 AM |
Calibre as a service in a linux server without QT4 | nadid | Calibre | 4 | 01-25-2011 12:00 AM |