#define MYTABLEVIEW_H #include<QTableView> #include<QItemDelegate> #include<QStandardItemModel> #include<QPixmap> class MyTableView; class MyItemDelegate; class MyStandardItemModel; class MyTableView:public QTableView { public: MyTableView(QWidget * parent=0); virtual ~ MyTableView(){} protected:...
Qt-在表格(QTableView) 中插入喜好设置 [文件] test. zip ~ 23KB 下载(59) [文件] main. cpp ~ 273B 下载(10) /** * @file main. cpp * @brief * @author xiangxw * @version 0. 0 * @date 2011 年月日 */ #include<QApplication> #include"MyTableView. h" int main(int argc, char ...
classMyTableView:publicQTableView { public: MyTableView(QWidget*parent=0); virtual~MyTableView(){} protected: voidmouseMoveEvent(QMouseEvent*event); private: MyItemDelegate*delegate; MyStandardItemModel*model; }; classMyItemDelegate:publicQItemDelegate { public: MyItemDelegate(QObject*parent=0); ...
classMyTableView:publicQTableView { public: MyTableView(QWidget*parent=0); virtual~MyTableView(){} protected: voidmouseMoveEvent(QMouseEvent*event); private: MyItemDelegate*delegate; MyStandardItemModel*model; }; classMyItemDelegate:publicQItemDelegate { public: MyItemDelegate(QObject*parent=0); ...