Qt Header on QListView

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


The QListView widget is part of the Model/View programming mechanisms of Qt. Basically, it allows to display items stored in a Model under the form of a list. In this topic we will not get deep into the Model/View mechanisms of Qt, but rather focus on the graphical aspect of one View widget: the QListView, and especially how to add a header on top of this object through the use of the QPaintEvent object.

Got any Qt Question?