Skip to content
  • 0 Votes
    8 Posts
    1k Views
    Christian EhrlicherC

    @Dariusz said in QAbstractItemModel asserts & multithreading:

    Hmmm I think this might not work for me

    Why not? It makes no difference if you push or pull the data... but it's up to you :)

  • Q_ASSERT handler ?

    Solved General and Desktop
    6
    0 Votes
    6 Posts
    3k Views
    kshegunovK

    As said asserts are not intended to filter out user data, they are there to catch programming errors. If your user can pass you incorrect data, then it's the developer's job to sanitize it and if needed show error messages and handle the error. If the developer's not done his/hers job properly, then it should trip an assertion which is to show that the situation should be fixed. This is not a way to "slap developer's ego" but to catch their misses.