Dragging and dropping in rich text example app

Heads up! You've already completed this tutorial.

Robert_Stoffers | 2020-05-11 08:57:06 UTC | #1

This works dragging and dropping from Chrome, however it doesn't work on Firefox for me. Instead, u.toLocalFile() returns a blank string with Firefox.

https://www.pythonguis.com/examples/megasolid-idiom-rich-text-editor/


Robert_Stoffers | 2020-05-11 09:02:44 UTC | #2

Its actually stranger then this. In both browsers, if I drag and drop the image of the application above from this webpage it fails with a blank image. However, if I say go to Google and say do an image search drag and drop works with both browsers.


Create GUI Applications with Python & Qt5 by Martin Fitzpatrick — (PyQt5 Edition) The hands-on guide to making apps with Python — Over 10,000 copies sold!

More info Get the book

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Dragging and dropping in rich text example app was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.