2014年8月6日

摘要: 添加按钮void QTableWidget::setCellWidget ( int row, int column, QWidget * widget )widget可以是自己定义的按钮class MyPushButton : public QPushButton{ Q_OBJECTpubl... 阅读全文
posted @ 2014-08-06 20:04 辉常的D调 阅读(9334) 评论(0) 推荐(0) 编辑
摘要: 在树形结构中有时候需要在每项前添加复选框,能够进行勾选,复选框的添加可以使用tree本身的属性就行 void QTreeWidgetItem::setCheckState ( int column, Qt::CheckState state )Sets the item in the given c... 阅读全文
posted @ 2014-08-06 12:12 辉常的D调 阅读(10572) 评论(0) 推荐(0) 编辑

导航