Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ComboBox Max Amount of Items?
Forum Updated to NodeBB v4.3 + New Features

ComboBox Max Amount of Items?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 3.0k 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    I am stuck in a pickle here. I have a QComboBox that has quite a few items (say 17-20 items).

    If the screen resolution on the Linux system is 1024x768, and the combo box expands past the screen, does the user have no ability to see the items on the end of the drop down?

    Can there be a scroll built in to the combo box drop down if the screen is too small?

    (I DONT want to use a spin box)

    Thanks in advance!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      veeeee_d
      wrote on last edited by
      #2

      A scroll bar appears when there are enough elements.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Why don't you just try to see how it works? You can easily experiment with this using Designer. Just add a whole lot of items to a combobox, and use the preview to see the result. Also take a look at the maxVisibleItems property of QComboBox.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fluca1978
          wrote on last edited by
          #4

          Not sure if you are reporting a problem or thinking about what could be a problem. On Linux it usually works with a scrollbar on the combo to scroll to other items. Some themes report a down arrow at the end of the combo to allow the user to scroll.

          1 Reply Last reply
          0

          • Login

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