Qt::ItemFlags YourModel::flags(const QModelIndex & index) const{ if (!index.isValid()) return Qt::ItemIsDropEnabled;...