I am doing some research, and here is what I came up with:
A QSystemTrayIcon cannot explicitly handle the drag / drop event. However, there is a workaround based on the method of arranging the icons in the Spifftastic tray.
- You create a uniquely colored icon and place it as an icon for a short one and take a screenshot.
- Given that you know the color of the sequence for the icon, you can search in the screenshot and find a specific icon for the place.
- A transparent widget is positioned above the icon and is used as a drop.
I have yet to work on several details of the operation, but this is the essence of this. All things are considered a hacky way of things, but given that there are no other ways to do this, I think this is acceptable.
The Fluffy App (written in C #) uses the Spifftastic method to find the tray icon. I take part in a transparent window, how they do it, but I still have to decompile and study their system.
Glenn nelson
source share