Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    ComboBox Max Amount of Items?

    General and Desktop
    4
    4
    2722
    Loading More Posts
    • 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
      vezprog last edited by

      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 Reply Quote 0
      • V
        veeeee_d last edited by

        A scroll bar appears when there are enough elements.

        1 Reply Last reply Reply Quote 0
        • A
          andre last edited by

          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 Reply Quote 0
          • F
            fluca1978 last edited by

            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 Reply Quote 0
            • First post
              Last post