<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python GUIs - mime-data</title><link>https://www.pythonguis.com/</link><description>Create GUI applications with Python and Qt</description><atom:link href="https://www.pythonguis.com/feeds/mime-data.tag.rss.xml" rel="self"/><lastBuildDate>Mon, 11 May 2020 09:00:00 +0000</lastBuildDate><item><title>Handling Image Drag and Drop from Web Browsers in PyQt6 — Why toLocalFile() returns an empty string and how to handle remote image drops correctly</title><link>https://www.pythonguis.com/faq/dragging-and-dropping-in-rich-text-example-app/</link><description>When dragging and dropping images from a web browser into a PyQt6 rich text editor, &lt;code&gt;toLocalFile()&lt;/code&gt; sometimes returns a blank string. It works for some images (like Google image search results) but fails for others (like images embedded directly on a webpage). Why does this happen, and how can I handle it?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Mon, 11 May 2020 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2020-05-11:/faq/dragging-and-dropping-in-rich-text-example-app/</guid><category>pyqt6</category><category>pyqt</category><category>drag-and-drop</category><category>rich-text</category><category>python</category><category>mime-data</category><category>qt</category><category>qt6</category></item></channel></rss>