QTableView

Python中做表格需要的几个类(Copy From https://doc.qt.io/qt-5/):

  • QTableWidget用来呈现一个一个QTableWidgetItem
    (1) The QTableWidget class provides an item-based table view with a default model. Table widgets provide standard table display facilities for applications.
    (2) The items in a QTableWidget are provided by QTableWidgetItem
    (3) If you want a table that uses your own data model you should use QTableView rather than this class.

  • QTableWidgetItem
    (1) The QTableWidgetItem class provides an item for use with the QTableWidget class. Table items are used to hold pieces of information for table widgets. Items usually contain text, icons, or checkboxes.
    (2) The QTableWidgetItem class is a convenience class that replaces the QTableItem class in Qt 3. It provides an item for use with the QTableWidget class.

  • QTableView
    .
    .
    .

  • Model/View Programming

  • QT Model/View Framework
    Model是用来包含用户存储的数据的
    View是用来展示Model的

你可能感兴趣的:(QTableView)