December 6, 2019, 3:25pm
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.
December 6, 2019, 5:36pm
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
December 6, 2019, 5:48pm
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
December 9, 2019, 3:50pm
If anyone cares, I filed the bug