[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    I developed a workaround for Qt5.4 DND bug that KDE apps might need
From:       PCMan <pcman.tw () gmail ! com>
Date:       2016-01-16 4:43:53
Message-ID: CAAMR6=75WxfPwky-ZRLB4syr-XykLAVyfkVzc5du9arx7Zs0EQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
I'm Hong Jen Yee (pcman), one of the main developers of LXQt and LXDE
desktop.
As I'm the developer of our file manager, we encountered some regression
bugs of Qt 5.4 that breaks DND support.

#49947: Drop events have broken mimeData()->urls() and text/uri-list.
#47981: Qt5.4 regression: Dropping text/urilist over browser windows stop
working.
Related LXQt bug: https://github.com/lxde/lxqt/issues/688

Since DND is crucial for a modern desktop environment and it's an upstream
bug, I believe that KDE is also affected.
Luckily I found some quick workarounds, so I'm gonna share it with you.

https://github.com/lxde/pcmanfm-qt/pull/295/files

I made it an independent C++ class which is licensed under LGPL, so it can
easily be reused by other Qt projects.
Just add two lines in your main() and it will work automagically.

The bug still exists in Qt 5.5 and it's not yet fixed in Qt upstream.
So, hope this helps! :-)

Best regards from LXQt.

[Attachment #5 (text/html)]

<div dir="ltr">Hello,<div>I&#39;m Hong Jen Yee (pcman), one of the main developers of \
LXQt and LXDE desktop.</div><div>As I&#39;m the developer of our file manager, we \
encountered some regression bugs of Qt 5.4 that breaks DND \
support.</div><div><br></div><div><div>#49947: Drop events have broken \
mimeData()-&gt;urls() and text/uri-list.</div><div>#47981: Qt5.4 regression: Dropping \
text/urilist over browser windows stop working.</div><div>Related LXQt bug: <a \
href="https://github.com/lxde/lxqt/issues/688">https://github.com/lxde/lxqt/issues/688</a></div></div><div><br></div><div>Since \
DND is crucial for a modern desktop environment and it&#39;s an upstream bug, I \
believe that KDE is also affected.</div><div>Luckily I found some quick workarounds, \
so I&#39;m gonna share it with you.</div><div><br></div><div><a \
href="https://github.com/lxde/pcmanfm-qt/pull/295/files">https://github.com/lxde/pcmanfm-qt/pull/295/files</a><br></div><div><br></div><div>I \
made it an independent C++ class which is licensed under LGPL, so it can easily be \
reused by other Qt projects.</div><div>Just add two lines in your main() and it will \
work automagically.</div><div><br></div><div>The bug still exists in Qt 5.5 and \
it&#39;s not yet fixed in Qt upstream.<br></div><div>So, hope this helps! \
:-)</div><div><br></div><div>Best regards from LXQt.</div></div>


[Attachment #6 (text/plain)]


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic