The class MyMenuItem isn't translated to Java, as the QCustomMenuItem.paint()
and sizeHint() virtual method callbacks aren't implemented yet.