beginInsertRows & endInsertRows doesn't refresh enough items in view
Solved
General and Desktop
-
Env
Linux
Qt 6.2.0Screenshot
original as below
insert "111" at pos 1 as below, the problem is that "fff" doesn't show
collapse & expand "bbb", everything becomes ok as below
Code
beginInsertRows(parent_index, n, n); // n = 1 ... endInsertRows();
Question
How to fix it?
-
@jronald said in beginInsertRows & endInsertRows doesn't refresh enough items in view:
How to fix it?
Provide a minimal, compilable example of your problem so we can take a look what you're doing wrong.
-
@Christian-Ehrlicher said in beginInsertRows & endInsertRows doesn't refresh enough items in view:
Provide a minimal, compilable example of your problem so we can take a look what you're doing wrong.
Modified
simpletreemodel
in official examples, but it works properly, code at https://ufile.io/4egsoww3
It might be my bug, I'll check it again