View Single Post
Old 01-12-2022, 12:48 PM   #104
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,037
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I've put up test versions of my plugins and the kiwidude ones I support that appear to work in both qt5 & qt6.

For others supporting kiwidude plugins, here's my checklist for the 5 I did:
  • Remove all Qt4 imports. Keep Qt5 (vs new qt.core (5.13+)) for back compatible to v2.85.1.
  • Remove calls to convert_qvariant() and defining code (plus QVariant import); only needed for qt4.
  • Remove QTableWidgetItem.UserType from calls to QTableWidgetItem.__init__() as proposed by jackie_w. un_pogaz's code also works, but it makes no difference and I can't find any reason to keep it.
  • Remove class NumericLineEdit and QRegExp imports--not used in my 5. If you need NumericLineEdit, look at replacements QRegularExpression and QRegularExpressionValidator.
  • Set minimum Calibre version to 2.85.1--or else keep all the qt4 imports, qvariant, etc.
  • Change setChecked->setCheckState when called with Qt.Checked/UnChecked. Or change to pass bool instead.
  • Remove call to setTabStopWidth from raw prefs viewer--changed in qt6 and not needed
  • Bump version

Last edited by JimmXinu; 01-12-2022 at 04:45 PM. Reason: Forgot setTabStopWidth
JimmXinu is offline   Reply With Quote