Hi,

I'm currently working on two projects in which I use custom Item Delegates to display data from tables. That's it; they are two different delegates built on the same scheme. The model in the first project is a QSqlTableModel; in the second, I use the DomModel found in the examples that I upgraded to obtain a table model.

Both item delegate's sizeHint's return correct values. The "QSqlTableModel project" works perfectly. The other one doesn't, because option.rect is QRect(0,0 0x0) ! A last detail: a SizeHintRole case in DomModel::data() is never ran.

So, what could be the cause for option.rect to be QRect(0,0 0x0) ?

Many thanks.