The HamburgerMenu subclass overrode showEvent() to reposition the menu using move() after QMenu::popup() had already shown it. On the first open, rect().width() could return a stale value, causing the menu to appear detached from the button and truncated to a single item. The move() call also bypassed Qt's screen boundary adjustments. Instead, we can replace the HamburgerMenu with a normal QMenu, and use a custom HamburgerButton class for the menu's tool button. In this class, we override mousePressEvent() to call popup() with the correct right- aligned position before the menu is shown. This lets Qt manage sizing and screen boundaries correctly. |
||
|---|---|---|
| .. | ||
| Android | ||
| AppKit | ||
| cmake | ||
| Icons | ||
| Qt | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Info.plist | ||