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