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. Random crashes in Qt 5.9.3 when qsortfilterproxymodel is used in QstackedWidget
Forum Updated to NodeBB v4.3 + New Features

Random crashes in Qt 5.9.3 when qsortfilterproxymodel is used in QstackedWidget

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

    It seems either Qt4.8 and Qt5 have a bug or I am missing something. I have a QStackedWidget that displays data in tabular form (one page leading to the next page). I use qsortfilterproxymodel for sorting. I followed the standard from Qt http://doc.qt.io/qt-5/qsortfilterproxymodel.html and have different tables in my project working flawlessly. Except for the tables in QStackedWidget. They work fine initially but eventually they crash when I go deep into stacked widget (front page <-> next page <-> next page <-> previous page <-> front page). It crashes random sometimes when I am going back and forth. On my front page I have different search options that I use that can directly take me to the 2nd or 3rd page of the stack. When I use these options, the crash occurs randomly on some page. If I do not use the Qsortfilterproxymodel, application work fine. Its just while using the Qsortfilterproxymodel in a Qstackedwidget that makes my application crash. After I googled I found https://bugreports.qt.io/browse/QTBUG-45697 which is very similar to what I am facing. The bug seems to be fixed in 5.6 which is why I upgraded from Qt 4.8 to Qt 5.9.3 but I am still facing the same issues. Any idea for a possible solution ? I am on a Windows 64 bit machine using the 64 bit Qt built on MSVC2017 64 bit and using the Visual C++ compiler 15.0 (amd64). Also many times when this crash happens and I try to look at the stack in my Qt creator 4.4.1, the creator itself crashes. Thank you so much for your help.

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

      Hi and welcome to devnet,

      Can you share a minimal compilable examples that shows that behaviour ?

      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
      0

      • Login

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