Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Menu bar menu so long it cuts off, making me unable to add more buttons. (Yes, I'm being serious.)
Forum Updated to NodeBB v4.3 + New Features

Menu bar menu so long it cuts off, making me unable to add more buttons. (Yes, I'm being serious.)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 2 Posters 115 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pi-squared
    wrote last edited by
    #1

    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.
    a16d3cfd-9208-4601-8543-84bd798ee746-image.png
    And no, scrolling doesn't do anything.
    It works looks fine when running it, though.
    75c60556-41f8-4136-9278-bf9b894e5ed9-image.png

    Axel SpoerlA 1 Reply Last reply
    0
    • P pi-squared

      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.
      a16d3cfd-9208-4601-8543-84bd798ee746-image.png
      And no, scrolling doesn't do anything.
      It works looks fine when running it, though.
      75c60556-41f8-4136-9278-bf9b894e5ed9-image.png

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote last edited by
      #2

      @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...

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      2
      • P pi-squared has marked this topic as solved

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved