PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 541 - QTableWidget.itemAt(row, col) always returns item at 0, 0.
: QTableWidget.itemAt(row, col) always returns item at 0, 0.
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: All All
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-10 16:25 EET by Albert Kottke
Modified: 2011-01-21 15:44 EET (History)
8 users (show)

See Also:


Attachments
Simple example of the problem. (1.05 KB, text/plain)
2010-12-10 16:25 EET, Albert Kottke
Details
Fixed version of the given example (1014 bytes, text/plain)
2011-01-12 19:48 EET, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Kottke 2010-12-10 16:25:52 EET
Created attachment 175 [details]
Simple example of the problem.

QTableWidget.itemAt(row, col) always returns item at 0, 0.

In the example below, both the table and the printed table should have the same
values. However, the values in the printed table only reflect the value at 0,0.
Comment 1 Matti Airas 2010-12-13 13:47:35 EET
Thanks for the bug report. Indeed, works just as you described. Prioritizing P3
- the issue will be taken care of during our upcoming sprints.
Comment 2 Albert Kottke 2010-12-13 20:13:18 EET
In case it helps, it appears that QTableWidget.item(row, col) returns the
appropriate item.
Comment 3 Hugo Parente Lima 2011-01-12 19:48:34 EET
Created attachment 217 [details]
Fixed version of the given example

You are using the wrong method.

QTableWidget.itemAt(x, y) returns the QTableWidget at x, y coordinate in
pixels, the method you want is QTableWidget.item(row, col).
Comment 4 Hugo Parente Lima 2011-01-12 19:48:56 EET
Marking as invalid.
Comment 5 renato filho 2011-01-21 15:44:43 EET
release beta4