Qt,QTableWidget的两个函数item和itemAt
2016-06-15 16:37
513 查看
坑爹的函数名称,注意看函数说明!!!
Returns the item for the given row and column if one has been set; otherwise returns 0.
如果要得到table中某个单元格中的item,应该用这个函数!!!
Returns the item at the position equivalent to QPoint(ax, ay) in the table widget’s coordinate system, or returns 0 if the specified point is not covered by an item in the table widget.
这个鬼函数。。。。
折腾了好久啊。。。哎
item()
QTableWidgetItem * QTableWidget::item(int row, int column) const
Returns the item for the given row and column if one has been set; otherwise returns 0.
如果要得到table中某个单元格中的item,应该用这个函数!!!
itemAt()
QTableWidgetItem * QTableWidget::itemAt(int ax, int ay) const
Returns the item at the position equivalent to QPoint(ax, ay) in the table widget’s coordinate system, or returns 0 if the specified point is not covered by an item in the table widget.
这个鬼函数。。。。
折腾了好久啊。。。哎
相关文章推荐
- 【QTP】On Error 的使用方法
- 【QTP】截图操作
- 【QTP】获取WinListView表中所有信息
- 【QTP】等待页面加载的几种方法
- QT中DBus的用法
- pyqt实现自定义窗口拖动大小,到桌面边框自动影藏
- QxOrm编译使用手记
- Qt5打印功能示例代码
- qt 标准对话框
- 一个基于Qt的截屏程序
- DBus编译出错 ----QT中dbus所依赖的一个库
- Qt之字体文件(TTF)
- Qt之字体文件(TTF)
- How to use Qt’s QSortFilterProxyModel
- Qt child widget stop inherit parent widget image(Qt子窗体stylesheet不继承父窗体stylesheet)
- Qt的tr函数和中文乱码处理
- ubuntu下Qt编译报错 cannot find -lGL
- MQTT协议在nodejs中的使用
- QT 子窗口—>主窗口 信号和槽的交互
- 【转】Qt中的QString,QByteArray,Qchar, char*