Reimplement QAbstractItemModel::flags() to return Qt::ItemIsDropEnabled (together with other flags) for invalid indexes.