Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Slow ComboBox with large data
Qt 6.11 is out! See what's new in the release blog

Slow ComboBox with large data

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 1.2k 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.
  • E Offline
    E Offline
    ed_robcont_
    wrote on last edited by ed_robcont_
    #1

    Hi community,

    I have a ComboBox with almost 800 entries. I made it editable to allow the user for typing and searching for the correct entry.
    The problem is that the ComboBox is now veeeery slow.
    How to speed it up?

    jsulmJ 1 Reply Last reply
    0
    • E ed_robcont_

      Hi community,

      I have a ComboBox with almost 800 entries. I made it editable to allow the user for typing and searching for the correct entry.
      The problem is that the ComboBox is now veeeery slow.
      How to speed it up?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @ed_robcont_ In my opinion it will be not that great for the user to scroll through a combo box with 800 entries to find something. Can't you organise differently? Maybe grouping the entries (I do not know what kind of data it is in your case)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      2
      • jsulmJ jsulm

        @ed_robcont_ In my opinion it will be not that great for the user to scroll through a combo box with 800 entries to find something. Can't you organise differently? Maybe grouping the entries (I do not know what kind of data it is in your case)?

        E Offline
        E Offline
        ed_robcont_
        wrote on last edited by
        #3

        @jsulm said in Slow ComboBox with large data:

        @ed_robcont_ In my opinion it will be not that great for the user to scroll through a combo box with 800 entries to find something. Can't you organise differently? Maybe grouping the entries (I do not know what kind of data it is in your case)?

        @jsulm Unfortunately there is not another way to display the dataset and the user should be able to scroll over all the available items if he want.

        To facilitate the search, the user can edit the ComboBox. It works, but it is too slow, the latency is of some seconds. Moreover, I would like the ComboBox to display the dropdown with filtered text.
        How to do it?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MajidKamali
          wrote on last edited by
          #4

          I think replacing ComboBox with ListView is a better way in your case. use a TextEdit or some related item in ListView's header for searching, use HeaderOverlay for headerPositioning to always show that Item on top of listview.

          E 1 Reply Last reply
          1
          • M MajidKamali

            I think replacing ComboBox with ListView is a better way in your case. use a TextEdit or some related item in ListView's header for searching, use HeaderOverlay for headerPositioning to always show that Item on top of listview.

            E Offline
            E Offline
            ed_robcont_
            wrote on last edited by
            #5

            @MajidKamali said in Slow ComboBox with large data:

            I think replacing ComboBox with ListView is a better way in your case. use a TextEdit or some related item in ListView's header for searching, use HeaderOverlay for headerPositioning to always show that Item on top of listview.

            I was thinking for the same, but I was hoping for a faster solution.

            ekkescornerE 1 Reply Last reply
            0
            • E ed_robcont_

              @MajidKamali said in Slow ComboBox with large data:

              I think replacing ComboBox with ListView is a better way in your case. use a TextEdit or some related item in ListView's header for searching, use HeaderOverlay for headerPositioning to always show that Item on top of listview.

              I was thinking for the same, but I was hoping for a faster solution.

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #6

              @ed_robcont_ I would use a Popup with ListView to provide something similar to your large ComboBox

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps

              1 Reply Last reply
              1

              • Login

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