Hi everybody,
I was trying to create a listView with word wrap function for text in items (rather than using horizontal scrollbar).

I know that is necessary using delegates but the QT Manual wasn't of much help to me:
  • SpinBoxDelegate example shows how insert a spinbox in a tableView but the spinBox is visible only when editing and not in view mode. It doesn't use paint().
  • StarDelegate example doesn't use a common widget but a paintDevice. It reimplement paint() (obviously).


Does somebody know an example/tutorial for delegate a common widget in view mode?

Delegating a QLabel for my purpose is correct or is recommended a different widget? Have I to reimplement paint() function?

I don't still have a sample code (a decent code ) to post now, so if some patient man want submit some hints would be very appreciated.

Best regards