View Single Post
Old 01-04-2022, 12:38 AM   #40
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,197
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, its definitely time to drop Qt4 support. Though if you dont want to, you could in theory do this:

Code:
try:
    import qt.core as QtGui
except ImportError:
    try:
        from PyQt5 import Qt as QtGui
    except ImportError:
        from PyQt4 import QtGui
kovidgoyal is online now   Reply With Quote