On some desktop managers such as Gnome or Unity, which try to give you a MacOS style main menu bar, the QMenuBar is hidden and a completely different menu is dynamically generated and drawn using the desktop's native routines, and rendered at the top of the desktop. This means Qt is not drawing the QMenuBar at all, and this may cause Squish to have problems recording or spying on it - it might not even appear as that class anymore in recordings.
It is suggested that you disable the main menubar behavior in Gnome or whatever window manager you are using, or record/playback using keyboard shortcuts / accelerators, or switch to a different window manager that does not have this behavior (such as KDE). Another idea is to dynamically invoke the menus from script code.
- See Disable The AppMenu (Global Menu) In Ubuntu
- Example - Dynamically activating QMenu entries
- How to pick menus and other volatile objects (Article - Picking and inspecting objects)
- http://psychocats.net/ubuntu/kde - switch to KDE which does not have this behavior