Hey @all,

within my sublacc of QItemDelegate, the QColorDialog returns always 0 when i want to get the result by using:
Qt Code:
  1. void MyDelegate::setModelData(QWidget *editor, QAbstractItemModel *model,
  2. const QModelIndex &index) const {
  3. QColorDialog *pDialog = qobject_cast<QColorDialog*>(editor);
  4. if(pDialog) {
  5. int resultCode = pDialog->result();
  6. qDebug() << "Result Code : " << resultCode;
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

It doesn't matter if i press "OK" or "Cancel", the result is ever 0.

Hope anybody could help

Best Regards
NoRulez