-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
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
Qtconsole quits when trying to drag in PyQt6 #583
Comments
I couldn't reproduce this in PyQt5, but it looks as if there may have been changes in PyQt6 that need addressing. If I try to drag a selection in qtconsole 5.4.3, I get the following:
|
According to https://stackoverflow.com/questions/67496362/qmouseevent-object-has-no-attribute-pos, the fix may be as simple as changing |
By the way, if your whole application aborts with this bug, then you might be experiencing the issue discussed here. Customizing |
I am indeed on PyQt6, on both machines. And thanks for taking a look! |
I think this case is already covered in Qtpy so the code is compatible between Qt5 and 6, right @dalthviz? |
I think some handling was added but only for |
Thanks for checking @dalthviz. @rayosborn, then a fix for this would require adding to Qtpy something similar to spyder-ide/qtpy#408 for |
Hi, just in case, updating to QtPy 2.4.0 should fix this issue (at least the issues/traceback related with the drag and drop event) |
Thanks @dalthviz! I'll bump our QtPy requirement and release a new Qtconsole version shortly so the fix can reach more users. |
That worked. Thanks! |
Just for the record, upgrading to QtPy v2.4.0 does indeed fix the issue in NeXpy when using PyQt6. @dalthviz, thanks for the fix! I'll update our dependencies. |
I released 5.4.4 with an increased requirement on QtPy. |
I'm on an Apple Silicon Mac, running Ventura 13.5 (also confirmed on an Intel Mac running Big Sur 11.7.9), and in
jupyter qtconsole
, whenever I select a bit of text and then click and hold the mouse as if to drag that text somewhere, the console aborts.The text was updated successfully, but these errors were encountered: