Thanks for the sample code, that's probably the best solution.

The problem with submenues and tooltips seems to be a longstanding bug btw:

https://bugreports.qt.io/browse/QTBU...mmentId=307223