You could filter the image out using a QSortFilterProxyModel exposed from C++ or you could implement a custom model in C++ that would handle the case you need.