[SOLVED] Can I return NULL in QItemDelegate::createEditor(...) ?
-
In the following method for the following class:
@QWidget * QItemDelegate::createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const [virtual]
@Just curious to know if it's a safe thing to do.
-
well because I am using a QTableWidget but I ended up calling:
myTableWidget->item(row,col)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled);
thanks.