I want to show some text (like \"No items\") when there are no items in QListView.
I tried to override paintEvent method of QListView, but it doesn\'t have any effect.>
If you use a QListView, you probably have a custom model containing data you want to display. This is maybe the best place to returns "No items" when your model is empty.