I’ve encountered a problem with drag and drop functionality in Qt5. When I compile and run the
draggableicons example program:
dropEvent never fires rendering drag and drop, well, drag only. Not so useful!
I should probably note that this also occurs when I use the precompiled version:
When I run the Qt4 version (from package
qt-examples-4.8.7-50.fc31.x86_64) of the same program it works just fine.
Can anyone else verify this behavior? Also, any suggestions about how to further troubleshoot would be most welcome. I’m running kernel 5.3.14-300.fc31.x86_64.
I encountered a problem with drag&drop in OpenShot.
I’m not an expert, so I don’t know if it is the same issue as yours, but I read about a workaround, I can’t remember where, for QT programs on wayland.
env QT_QPA_PLATFORM=xcb openshot-qt
Yes, that tells Qt to use X11 instead of native Wayland support. It runs just fine if I do that and matches my other findings, so thank you for that.
I followed the advice here:
Because this occurs on the
mutter compositor but not on
weston, I’m beginning to think this is a
mutter problem. I ran the application under both compositors like this:
Comparing the result I see a
firstname.lastname@example.org() under weston but not under mutter. I have also tried
mutter-3.35.1-2.fc32.x86_64 from the Rawhide repo, but get the same result. I think I’ll do a little more digging and file a bug against
If anyone cares, I filed the bug