Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to use private (QAbstractItemViewPrivate, d_func) ?
AndrzejB last edited by
I tried write own subclassing of QAbstractItemView. I met problem: indexAt
I must convert (row,col) to QModelIndex. In source example is: d->model->index(row, col, pointer);
I tried subclass QAbstractItemViewPrivate, include <QtWidgets/private/qabstractitemview_p.h>, have added in .pro: QT += core gui widgets-private
but is problem with Q_D(MyView) and d_func.
You don't need to do that, use the QAbstractItemView::model method.