zuck
11th August 2009, 14:41
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?
void MyDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
// ... ??
}
I need "real widgets" instead of "painted-only widgets", so i can connect signals and slots for my specific logic.
Thanks for your help! :)
How can i do it?
void MyDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
// ... ??
}
I need "real widgets" instead of "painted-only widgets", so i can connect signals and slots for my specific logic.
Thanks for your help! :)