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的

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容