1 Attachment(s)
setindexwidget and not selectable widget
Hi all,
I am using QAbstractItemView class and setIndexWidget method in QStyledItemDelegate paint method. I set movie to view cell.
this is code snipped from my program.
Code:
pLabel->setPixmap(iconPath);
pLabel->setScaledContents(true);
pLabel->setFixedSize(PROCESS_MODEL_DEFAULT_ICON_WIDHT,PROCESS_MODEL_DEFAULT_ICON_HEIGHT);
layout->addWidget(pLabel);
layout->addWidget(pTextLabel);
layout->setContentsMargins(0,0,0,0);
pWidget->setLayout(layout);
mView.setIndexWidget(index, pWidget );
But column which i set with setIndexWidget is not selectable. So when i select row in view the movie column is not selected.
There is screenshot example.
How can i set widget selected when row selected?
Thanks in advance
Ramazan Girgin