My context menu have so many items that i need a slider bar to control it, but i did't find any function could do this. How could i do?
From another thread on Stack Overflow, I found this trick:
submenu->setStyleSheet("QMenu { menu-scrollable: 1; }");
For further information, see create a scrollbar in a submenu qt?
@Frank Osterfeld: I have a perfect example of a valid use case for huge contextual menu that needs a scrollbar, Qt Creator and the auto-completion list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With