C++ (Qt) QStandardItemModel *model = qobject_cast<QStandardItemModel *>(ui->comboBox->model()); QStandardItem *item = model->item(1,0); Qt::ItemFlags itemFlags = item->flags(); itemFlags &= ~Qt::ItemIsSelectable; itemFlags &= ~Qt::ItemIsEnabled; item->setFlags(itemFlags);