Already asked that question on stack overflow, but without any result. May be the question is incorrect in some way, correct me in that case.
I'm not sure either it's some kind of bug\glitch or I'm doing something wrong. I have some hidden rows in the table and on click I want them to appear but result you can see on the picture below.
That how it looks before click:
Screenshot from 2020-07-14 23-13-25.png
That how it looks after click:
Screenshot from 2020-07-14 23-14-47.png
Here the video of how does it look like: https://streamable.com/ulnk47
This effect occurs only when slider is scrolled till the end. Glitch disappears if I change focus to another window or when I scroll table up until it goes out of view.
Here is my code:
I have already tried tableView_->update() and tableView->repaint(), none of them worked.Qt Code:
for(int i = 0; i < table_->rowCount(); i++) { if(i%table_->typesNumber()) tableView_->hideRow(i); } ... void DumpsComparisonWindow::onTableClicked(const QModelIndex& index) { ... tableView_->showRow(index.row() + i); ... }To copy to clipboard, switch view to plain text mode
I also created git repo to test code: https://gitlab.com/JuicyPussy/qtableview_glitch/
Thank you in advance for any hint!
Bookmarks