Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QSortFilterProxyModel segmentation fault when updating source model

QSortFilterProxyModel segmentation fault when updating source model

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 465 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.
  • D Offline
    D Offline
    delvian
    wrote on 1 Oct 2020, 09:38 last edited by
    #1

    Hi All,

    My app crashes with a segmentation fault when I try to update the source model after implementing QSortFilterProxyModel. I'm not accessing any indexes directly, just updating the source model with a call to the db. What am I doing wrong?

    Regards,
    Delvian

    J 1 Reply Last reply 1 Oct 2020, 10:51
    0
    • D delvian
      1 Oct 2020, 09:38

      Hi All,

      My app crashes with a segmentation fault when I try to update the source model after implementing QSortFilterProxyModel. I'm not accessing any indexes directly, just updating the source model with a call to the db. What am I doing wrong?

      Regards,
      Delvian

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 1 Oct 2020, 10:51 last edited by
      #2

      @delvian If your app is crashing first thing to do is to use the debugger.
      Without more information it is impossible to say why your app is crashing, so please use debugger first. You also can post the stack trace here after the crash.

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        delvian
        wrote on 1 Oct 2020, 15:40 last edited by
        #3

        I figured it out after reading the C++ docs. The Qt for Python docs doesn't mention that you need to emit the layoutAboutToBeChanged signal first.

        1 Reply Last reply
        1

        1/3

        1 Oct 2020, 09:38

        • Login

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