SQL and PyQt

Learn how we can implement and use SQL with PyQt.

PyQt's model/view classes

One of the few convenience classes PyQt offers for working with data is QTableWidget. A table of items can be created using QTableWidget, a list of things can be displayed using QListWidget, and a tree-like structure can be provided using QTreeWidget. The view, model, and delegate classes are all combined into one category in these widgets, which offer all the tools required to work with data. However, compared to dealing with the model/view structure, these classes are less versatile and are more centered on item-based interfaces. These widgets all get their functionality for controlling headers and selecting items from the abstract class QAbstractItemView.

An abstract class offers the interfaces between other parts, offering functionality and default feature implementation.

  • Models: Each ...