Hi, I need to implement a delegate for a QListView widget which paints, for each item (taken from a sql table model), a pair composed by a QLabel and a QLineEdit instances.

How can i do it?

Qt Code:
  1. void MyDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
  2. {
  3. // ... ??
  4. }
To copy to clipboard, switch view to plain text mode 

I need "real widgets" instead of "painted-only widgets", so i can connect signals and slots for my specific logic.

Thanks for your help!