Did you call QAbstractItemView::setModel() before that connect statement?