C++ (Qt)while(!asleep()) sheep++;
// Get the current delegate for(int i=0;i<table->model()->columnCount();i++) { QStyledItemDelegate* delegate = (QStyledItemDelegate*)table->itemDelegateForColumn( i ); // Remove the delegate from the view table->setItemDelegateForColumn( i, NULL ); delete delegate; }
// Get the current delegate if(table->model()) for(int i=0;i<table->model()->columnCount();i++) { QAbstractItemDelegate* delegate = table->itemDelegateForColumn( i ); //Remove the delegate from the view table->setItemDelegateForColumn( i, NULL ); delete delegate; }