Support for qt6 is complete and merged into devel

24 views
Skip to first unread message

Edward K. Ream

unread,
Jul 14, 2021, 11:37:53 AM7/14/21
to leo-editor
#2005 suggests importing more qt6 symbols. This issue has been completed and closed.

The new code affects only leoQt6.py. The new imports should work for any installation created with `pip install pyqt6`.

leoQt6.py now contains these new imports:

from PyQt6 import QtPrintSupport as printsupport
from PyQt6 import Qsci
import PyQt6.QtSvg as QtSvg
from PyQt6 import uic

These imports are quite different from the corresponding qt5 imports. I had to look at the sources to discover what worked!

As noted in #2005, other imports are possible. Those imports are commented out, but they do work. Imo the commented-out imports are not of general interest. Let me know if you disagree.

#2005 concludes the vast majority of work on qt6 support. Please report any problems!

Edward

Edward K. Ream

unread,
Jul 14, 2021, 12:20:53 PM7/14/21
to leo-editor
On Wednesday, July 14, 2021 at 10:37:53 AM UTC-5 Edward K. Ream wrote:

> #2005 concludes the vast majority of work on qt6 support. Please report any problems!

For testing clarity, leoQt.py reports the qt version in the log. I'll remove those traces for b1.

Edward

tbp1...@gmail.com

unread,
Jul 14, 2021, 1:36:53 PM7/14/21
to leo-editor
Devel branch is working well with VR3 and Freewin  with this morning's version.

Edward K. Ream

unread,
Jul 14, 2021, 1:47:18 PM7/14/21
to leo-editor
On Wed, Jul 14, 2021 at 12:36 PM tbp1...@gmail.com <tbp1...@gmail.com> wrote:
Devel branch is working well with VR3 and Freewin  with this morning's version.

Thanks for the confirmation.

Edward
Reply all
Reply to author
Forward
0 new messages