Don't import QtGui
when loading QtCore
unless required
#496
Labels
Milestone
QtGui
when loading QtCore
unless required
#496
To make up
mightBeRichText
,QtGui
is being imported in the following lines:qtpy/qtpy/QtCore.py
Lines 103 to 112 in b851e00
qtpy/qtpy/QtCore.py
Lines 132 to 137 in b851e00
I suppose the function is not something widely used, so the imports slow the module initiating down.
I'd implement the function this way (and similarly for PySide2):
Furthermore, this seems to bypass PYSIDE-2898.
But then, what about
convertFromPlainText
, which is also defined inQtGui.Qt
?The text was updated successfully, but these errors were encountered: