I need to relate the view index to the model index for searches in the view.
Based the model index on the database table primary key.
Not sure I understand the proxy model doc, but,
here is what I tried:
Qt Code:
qDebug() << " midx is " << midx; qDebug() << " vidx is " << vidx;To copy to clipboard, switch view to plain text mode
midx has the correct value for the row in the model/database.
vidx is -1 The error says index from wrong model passed to mapFromSource.
What's wrong?
Bookmarks