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.ui
See also item().ci
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.get
See also setItem().it
今天用itemAt取QtableWidget的值,怎么取都是取的第一行,因此我一直感受本身的参数传错了,就找了跟啊,最后仍是不行,从新生成仍是不行,最后没有办法查助手,发现一个takeitem这个能够获得,但是会到原来表里面的拿走,这样不行啊io
因此我又找啊,找到item,最后实现了目的,table
但是itemAt为何不能够呢,仔细看看,能够是坐标系统的问题,itemAt指的可能不是行和列,而你坐标点,若是能够转化为item就返回,若是不能就返回0tab
item,就是真正的行列坐标系统了。di