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. QComboBox - strange behavior after clear()
Forum Updated to NodeBB v4.3 + New Features

QComboBox - strange behavior after clear()

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.8k 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.
  • H Offline
    H Offline
    hsfougaris
    wrote on last edited by
    #1

    If I have a QComboBox that where I add 100 items in code, the aren't all displayed on screen and I see the arrows on the top and bottom of the popup (for navigating up and down the items).
    This is all as expected.

    If I know clear the QComboBox and add only a few items (even 1), the arrows are still displayed.

    If I populate the QComboBox directly with the few items, the arrows are not displayed.
    Is there some sort of "reset" or invalidate function I should send to the QComboBox?

    If you can't say what you mean, you'll never be able to mean what you say.

    1 Reply Last reply
    0
    • frankcyblogic.deF Offline
      frankcyblogic.deF Offline
      frankcyblogic.de
      wrote on last edited by
      #2

      Sounds like a strange usecase. Which user want's to select from 100 choices? 10 is usually the limit where user-friendliness ends. Maybe you are looking for a 'QCompleter'?

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hsfougaris
        wrote on last edited by
        #3

        well it was an example so you could understand the point...
        even if you use 50 and go to 2, it's the same.

        the issue is that I have some dynamically generated choices inside a combobox - when I go from many to few, I get this behavior.

        If you can't say what you mean, you'll never be able to mean what you say.

        1 Reply Last reply
        0
        • frankcyblogic.deF Offline
          frankcyblogic.deF Offline
          frankcyblogic.de
          wrote on last edited by
          #4

          No question about, that it sounds like another bug.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

            so, then please create a "Jira issue":http://bugreports.qt.nokia.com/secure/Dashboard.jspa

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hsfougaris
              wrote on last edited by
              #6

              I just did - http://bugreports.qt.nokia.com/browse/QTBUG-18788

              If you can't say what you mean, you'll never be able to mean what you say.

              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