qt

When should I use a QListWidget over a QListView?


From what I understand, QListWidget is built on QListView, and implements a "traditional" list widget, without any model/view concept.

Is there any situation where QListWidget should be preferred over QListView, or is QListView always a better answer once the model/view concept is understood ?


Solution

  • QListWidget is easier to use, even once you understood how models work. It can be handy to use in dialogs where a strict MVC separation is not that much of a concern.