We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QtGui
QtCore
To make up mightBeRichText, QtGui is being imported in the following lines:
mightBeRichText
qtpy/qtpy/QtCore.py
Lines 103 to 112 in b851e00
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):
# Missing QtGui utility functions on Qt if not hasattr(Qt, "mightBeRichText"): def _mightBeRichText(*args, **kwargs): from PySide6.QtGui import Qt as guiQt return guiQt.mightBeRichText(*args, **kwargs) Qt.mightBeRichText = _mightBeRichText
Furthermore, this seems to bypass PYSIDE-2898.
But then, what about convertFromPlainText, which is also defined in QtGui.Qt?
convertFromPlainText
QtGui.Qt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: