QTableView row height via delegate and setRootIndex
Hi,
I have a QTableView with a delegate, this sets the row height of the table view, via override sizeHint:
Code:
{
if ( s.isValid() )
s.setHeight(20);
return s;
}
This works 100%. But if I set a new root index for the tableview:
the row height is set to default height. The delegate is ignored! I need a fixed row height, also after a new root index!
Does anyone know, what the problem is? How can I fix this?
Thanks!
Chris
Re: QTableView row height via delegate and setRootIndex
Could you post a minimal compilable example reproducing the problem?
Re: QTableView row height via delegate and setRootIndex
I've found my mistake, I must call
after the new index has set!
...nevertheless thanks for your help!
Chris