Hmm... definitely not the right way to do it. Take a look at Qt::CheckStateRole and Qt::ItemIsUserCheckable and forget about index widgets.