I have the next code inside the paint event of a custom delegates:

Qt Code:
  1. void A_delegates::paint(QPainter* painter, const QStyleOptionViewItem & option, const QModelIndex& index) const
  2. {
  3. QRect the_rect(option.rect);
  4. A_file_chooser file_chooser;
  5. file_chooser.setGeometry(QRect(QPoint(0,0), the_rect.size()));
  6. file_chooser.render(painter,the_rect.topLeft());
  7. }
To copy to clipboard, switch view to plain text mode 
A_file_chooser is a customwidget with a label & button. It has tested (promoting it inside a form), I can see it.

Ok,in the case of the delegate I see my cell empty. (And the delegates, that shows another kind of widgets, works fine)
Any idea ? Any help would be appreciatted
Thanks.