Tidy up / correct use of proxy model #273
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From stackoverflow:
In my app, I am using a QSortFilterProxyModel so the fix is slightly more complex:
The proxy part seems unnecessary and/or inconsistent: 1. if you want to get the index in the next row, you should just use
QModelIndex.siblingAtRow(); 2. you should preferindex()and avoidcreateIndex()along with theinternalId()unless you're completely sure about its behaviour; 3. in your original question you ask aboutQTableWidgetwhich doesn't allow proxies, are you actually using aQTableView? 4. even if you are, the view should always act on its own model, not the source of its proxy. –musicamante
CommentedJun 24 at 15:15