Obsolete Members for QAbstractItemModel
The following members of class QAbstractItemModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||setSupportedDragActions(Qt::DropActions actions)|
Member Function Documentation
Resets the model to its original state in any attached views.
Note: Use beginResetModel() and endResetModel() instead whenever possible. Use this method only if there is no way to call beginResetModel() before invalidating the model. Otherwise it could lead to unexpected behaviour, especially when used with proxy models.
Instead you should use:
beginResetModel(); myData.clear(); endResetModel();
[protected] void QAbstractItemModel::setRoleNames(const QHash<int, QByteArray> &roleNames)
This function is obsolete. Reimplement roleNames() instead.
Sets the model's role names to roleNames.
This function allows mapping of role identifiers to role property names in scripting languages.
This function was introduced in Qt 4.6.
See also roleNames().
void QAbstractItemModel::setSupportedDragActions(Qt::DropActions actions)
This function is obsolete. Reimplement supportedDragActions() instead.
Sets the supported drag actions for the items in the model.
This function was introduced in Qt 4.2.
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.