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.


PyQt/PySide 1:1 Coaching with Martin Fitzpatrick — Get one on one help with your Python GUI projects. Working together with you I'll identify issues and suggest fixes, from bugs and usability to architecture and maintainability.

Book Now 60 mins ($195)

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

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. Martin founded PythonGUIs to provide easy to follow GUI programming tutorials to the Python community. He has written a number of popular https://www.martinfitzpatrick.com/browse/books/ on the subject.