Avoid noexcept in AbstractTableModel and related
AbstractTableModel has many methods marked noexcept. This forces subclasses to not leak any exception. If data comes from sources like a database, network, file, etc.. this seems wrong. How exceptions should be handled is out of scope. Check the Qt API doc:
- QAbstractItemModel
- QAbstractTableModel
- Note: the Qt6 doc tells if a method is noexcept in the detailed part, example: QList::at()
Then adapt:
-
AbstractTableModel code -
AbstractTableModel examples -
StlHelpers -
StlContiguousContainerAdapter -
SharedStlContiguousContainerAdapter
Edited by Philippe Steinmann