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. QSortFilterProxyModel crashes on filtering item out

QSortFilterProxyModel crashes on filtering item out

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 492 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.
  • TabletopLaptopT Offline
    TabletopLaptopT Offline
    TabletopLaptop
    wrote on last edited by
    #1

    I have included a zip file that contains my test case for this behavior and I do not know the internals of QT well enough to know what is going on. The program crashes because QVector gets out of range.

    How to cause crash in test case:

    1. type "Tom" in search bar
    2. edit "Tom" and change it to something like "Harold"
    3. click out of box to commit change and the application will crash with and index out of range error

    I am not sure how to make editing cells and the active sorting/filtering work at the same time. I assumed it was trivial and this behavior is necessary for my application.
    Any help is appreciated! Link to the test case: https://1drv.ms/u/s!AorbqJ_2ZaIz3mTpOfaPlUXJEoRC

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You may have unearthed a bug or an edge case. You should check the bug report system to see if it's something known. If not please consider opening a new report providing your sample project and explanation.

      It also crashes on OS X.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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