I have 2 applications, 1 has a QMenu that can be opened through DBus ("menu" app) and the other can open that menu by double clicking ("clicking" app).
When I open the menu by double clicking in the "clicking" app the menu doesn't close when I click outside of the menu.
The menu closes when:
If the menu belongs to the same app then it closes.
Expected Result:
Actual Result:
1-4 same as above
Behaviour happens in Solus 4.0
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
In lubuntu (lxqt) the menu shows for a split second and then closes.
A simpler way to test this is to use qdbusviewer.
Solved it by adding
QThread::msleep(150);
to the dbus method before showing the menu.
Might be just a workaround though.