Menu bar menu so long it cuts off, making me unable to add more buttons. (Yes, I'm being serious.)
-
Qt Creator version: 16.0.2
Qt Version: 6.8.3 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)
OS: Linux Mint 22.1
It doesn't matter if I use X11 or Wayland, it still produces the same result.
And no, scrolling doesn't do anything.
It works looks fine when running it, though.
-
Qt Creator version: 16.0.2
Qt Version: 6.8.3 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)
OS: Linux Mint 22.1
It doesn't matter if I use X11 or Wayland, it still produces the same result.
And no, scrolling doesn't do anything.
It works looks fine when running it, though.
@pi-squared said in Menu bar menu so long it cuts off, making me unable to add more buttons. (Yes, I'm being serious.):
It works looks fine when running it, though.
Do I understand that correctly - the first screenshot is from the Widgets Designer as part of Qt Creator, the second is from running the compiled executable?
If I create large menus, I usually do it programmatically, not in Widgets Designer. I'd probably use a
static constexpr std::array
to store menu texts, maybe use a struct as a type that tells me whether a menu's action is enabled by default. Maybe I'd even keep an enum around that has a key for each action. Just loop over the array and add actions. That's much easier to maintain, than to change an entry in Widgets Designer. It hasn't been programmed to handle super large menus... -