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. Known bug? ComboBox ListView draws overlapping text when model is changed

Known bug? ComboBox ListView draws overlapping text when model is changed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
comboboxlistviewbug
2 Posts 2 Posters 1.2k Views
  • 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
    Eeli K
    wrote on last edited by Eeli K
    #1

    Edit: this is about Quick Controls 2.0 ComboBox, not older Quick Controls.

    Is this a known bug? (I'll try to give more details and report a bug if this isn't known already.)
    screenshot of combobox listview

    I have tried to use a c++ model in many ways: iheriting QAbstractListModel, inheriting QStandardListModel, sending different change related signals. Basically the model is completely changed between states, i.e. cleared and populated with new items. After it has been changed and new items selected in the UI, the ComboBox Popup ListView may have one or more overlapping text items as seen in the screenshot. I'm not sure yet, but probably the wrong texts (which overlap the correct ones) are from a previous state of the model. This happens at least in Windows desktop, Linux desktop and Android x86 emulator, with the latest 5.6. and 5.7. releases.

    Additionally in Linux and Windows when the item count changes it affects the listview row count only upwards: it will remain as long as the largest item count in the model/view history and will have empty items or sometimes even text from a previous state of the model in some row. This is probably unrelated but annoying. It doesn't happen in Android emulator, it has always the correct row count.

    1 Reply Last reply
    1
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      This is not a known issue. Please report a bug and we'll take a look.

      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