Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90936

Core dump when new items added to QTableWidget after a sort is performed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.11.3
    • Widgets: Itemviews
    • None
    • CentOS 7
    • Linux/Other display system

    Description

      setSortingEnabled(false) when adding new items to QTableWidget and setSortingEnabled(true) when finished adding items to QTableWidget. However, when sort order is changed by user, i.e. ascending to descending, and then new items are to be added, information is not properly displayed. The first column properly displays the information to be added, in the appropriate user selected order; however, the subsequent items in that row are not populated. Then, when one goes to push a button, called, "ackAll()," in this case, to acknowledge all information and clear the information displayed in the table, then a segmentation fault is raised. Please see bellow stack trace output and advise:

      (gdb) backtrace
      
      #0  0x00000000004948fb in VEHICLE_PAGE::DisturbanceEventPage::ackAll() ()
      
      #1  0x00007ffff790ee09 in QMetaObject::activate(QObject*, int, int, void**) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Core.so.5
      
      #2  0x00007ffff687b3a2 in QAbstractButton::clicked(bool) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #3  0x00007ffff687b5a4 in QAbstractButtonPrivate::emitClicked() () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #4  0x00007ffff687d13e in QAbstractButtonPrivate::click() () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #5  0x00007ffff687d295 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #6  0x00007ffff67d3688 in QWidget::event(QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #7  0x00007ffff6796e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #8  0x00007ffff679ea13 in QApplication::notify(QObject*, QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #9  0x00007ffff78e3f58 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Core.so.5
      
      #10 0x00007ffff679d50f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
      
         from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #11 0x00007ffff67ed1dd in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #12 0x00007ffff67efae3 in QWidgetWindow::event(QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #13 0x00007ffff6796e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #14 0x00007ffff679df60 in QApplication::notify(QObject*, QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Widgets.so.5
      
      #15 0x00007ffff78e3f58 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Core.so.5
      
      #16 0x00007ffff6fb4eff in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
      
         from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Gui.so.5
      
      #17 0x00007ffff6fb6df5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
      
         from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Gui.so.5
      
      #18 0x00007ffff6f92b3b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      
         from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5Gui.so.5
      
      #19 0x00007fffe9a7f18b in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      
         from /opt/Qt5.11.3/5.11.3/gcc_64/lib/libQt5XcbQpa.so.5
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            paulwall Paul Kruchko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes