Episode 52 of "Introduction to Qt Widgets" is out now. This is the first episode of Module 8, where we look at item-based lists before getting into Qt's model/view framework. Watch it here:
www.youtube.com/watch?v=pU66... #QtDev #QtWidgets #ModelView #CPlusPlus #Cpp
Introduction to Qt Widgets (Part 52) - Item Views
Qt has two kinds of lists, tables, and trees. One kind uses a model/view setup which gives a great separation between data and presentation. The other one is item based, meaning your data is stored in the items, just like the checked value is stored inside the checkbox. The disadvantage with the model/view framework is that it is more work to set up, which is why we will start this module with the much simpler item based version. Chapters: 00:00 Introduction 00:45 The Widget versus the View classes 03:55 QListWidget 08:40 QTableWidget 10:16 The table widget example 15:47 Advertise - can you help us with a USB driver? 16:11 QTableWidget::addItem - of course doesn't exist 16:55 QTreeWidget 20:35 The tree widget example 24:00 Compare the API of list, table, and tree 24:35 Configuring items 27:00 Headers 29:06 Whats up in the next episode Links: * Table View Galore : https://youtu.be/F8min4ZZJaI?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI...