Hi,
I've subclassed QAbstractTableModel and reimplemented the neccessary functions for it. It contains a 2-dimensional-Array of QTableWidgetItems* that hold the Data to be displayed.
The QTableView, that holds the Model gets modified with "setSelectionBehavior(QAbstractItemView::SelectRow s)" and "setSelectionMode(QAbstractItemView::SingleSelecti on)".
My biggest concern right now is the "dragging"(holding left click on an Item and moving the Mouse/Cursor). Even if the cursor only moves 1 pixel the application crashes with an exception in Qt5Cored.dll (Accessviolation).
This Crash does not occur, when i comment out the SingleSelection.
I've also disabled every drag-drop option I could find (setDragDropMode, setDragEnabled, setDragDropoverwriteMode, viewport()->setAcceptDrops()) though, that didn't help.
My Question now is: What function could Qt also try while "dragging" a QTableWidgetItem? What can I change, that the crash won't occur while stil having SingleSelection?
Bookmarks