How to use private (QAbstractItemViewPrivate, d_func) ?
Unsolved
General and Desktop
-
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. -
Hi,
You don't need to do that, use the QAbstractItemView::model method.