-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the icon is moved on the desktop, the placement position keeps jumping #6
Comments
Thanks for testing @louies0623. Yes, this is a known issue. This is what happens:
I don't know yet why this happens and how to solve it. |
Related? Video by @hijarian: |
I can reproduce the issue with a minimal Python example:
It seems like TODO: Check if this has the issue also when running e.g., on Linux. |
Here is a bit more elaborate test program.
|
Even on Windows 11 with Additionally on Windows the icon disappears when being dragged.
At this point I suspect that it is a bug in Qt 5 and 6. Aufzeichnung.2024-06-16.193900.mp4 |
I can't help with PyQt6 or Windows, but I tested a C++ version of the last testcase posted here (translated from python to C++ by ChatGPT, please check) and it appears to work fine for me on Linux with Qt 6.7.2. http://www.kdab.com/~dfaure/2024/probonopd-filer.cpp |
Thank you very much @dfaure-kdab. Using I will need to find a way to get 6.7.2 running and retest then. Screencast_20240710.webm |
Does this still happen if you add
? While I couldn't reproduce your bug, I was seeing a "+" sign during the DnD operation, and this fixes that, at least. It might also fix the copying that you're seeing ;) |
In the Python version on Windows, doing this still prevents me from moving icons to certain positions. Will re-test with C++ on Linux soon. |
Maybe we need to drop QListView altogether and implement it in a completely custom way. Something like this which I have tested on Windows 11 so far;
|
Here is an actually smooth version, but it doesn't use Qt's drag-and-drop mechanisms. Compare how much better moving items in the windows feels here. This is the behavior I'd actually like to achieve, but using Qt's drag-and-drop:
|
Possibly related? (The below does NOT do the trick...)
|
https://ubuntu-mate.community/t/proper-alignment-of-desktop-symbols/9153 I think that Qt list view is just for displaying lists, so it will have a fixed "snag grid" arrangement. But if there is a position pin behind the icon to help pin it to a specific free position, it may need to be developed separately, because most people think that this is fine, and developers will not specially develop free arrangement of positions. |
PC-1-screen0.webm
The text was updated successfully, but these errors were encountered: