View Single Post
Old 01-08-2022, 09:46 AM   #83
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,266
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@kovid, Please can you advise on this ...

I've completed the Qt6 changes to my ScrambleEbook plugin so that it seems to run OK in calibre v5.0-v5.99.2

However, the current version of the plugin works in calibre v3.48-v5.34. I believe there is only one issue which stops the updated plugin working in v3.48-v4.23. To make it backward compatible I need to decide the best way, if there is one, of dealing with 2 instances of code similar to this:
Code:
app = QApplication(args)
w = someQDialog(some_args)
w.show()
app.exec_()
#app.exec()
app.exec_() works OK with calibre v3.48-v5.34 but not with v5.99.2, which needs to be app.exec().

app.exec() works OK from v5.0-v5.99.2 but not with v3.48-v4.23.

Is there a neat way to handle both simultaneously? I did notice that dlg.exec_() still works in v5.99.2 where dlg is a QDialog object.
jackie_w is offline   Reply With Quote