We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried going through Chapter 5 myself and kept getting an assert when adding a picture:
Query OK: "INSERT INTO pictures (album_id, url) VALUES (:album_id, :url)" ASSERT: "proxyIndex.model() == this" in file itemmodels\qidentityproxymodel.cpp, line 259
I then found this repo so I tried the Chapter 5 code from the repo. Same result.
The debug call path shows that the last executed line in the code is:
void AlbumWidget::addPictures() { ... ui->thumbnailListView->setCurrentIndex(lastModelIndex);
The failing assert is in:
QModelIndex QIdentityProxyModel::mapToSource(const QModelIndex& proxyIndex)
Any ideas why?
The text was updated successfully, but these errors were encountered:
It's remember me something. I guess we already fixed it on GitHub repository of the second edition. Can you check if this PR help you? PacktPublishing/Mastering-Qt-5-Second-Editon#1
Sorry, something went wrong.
I also applied the PR on this repository. You can check it here: bd85b91
I hope that you have got your answer @bigguiness
No branches or pull requests
I tried going through Chapter 5 myself and kept getting an assert when adding a picture:
Query OK: "INSERT INTO pictures (album_id, url) VALUES (:album_id, :url)"
ASSERT: "proxyIndex.model() == this" in file itemmodels\qidentityproxymodel.cpp, line 259
I then found this repo so I tried the Chapter 5 code from the repo. Same result.
The debug call path shows that the last executed line in the code is:
The failing assert is in:
QModelIndex QIdentityProxyModel::mapToSource(const QModelIndex& proxyIndex)
Any ideas why?
The text was updated successfully, but these errors were encountered: