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:
void MyDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { // ... ?? }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!
Bookmarks