Polish DropMenu before creating platform window
A style may want to change the surface format of the window. Changing the surface format after the window has been created has no effect though. One example of this is Breeze where the context menus created here had an ugly border instead of the intended look. This is because the setting of Qt::WA_TranslucentBackground by breeze had no effect anymore after the window was already created.
See also: kdevelop/kdevelop@2bef4a06
See also: frameworks/kio!1282 (merged)
Co-Authored-By: David Redondo kde@david-redondo.de
I discovered this by accident. In my case dropping a file from Samba share from Dolphin onto a containment without Folder View causes menu to be shorted than usual (without copy/move/link above and Cancel below) and with opaque background & "korners".