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 689 - Potential bug when subclassing QTableView
: Potential bug when subclassing QTableView
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta5
: Other Linux
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-17 17:55 EET by rulfzid
Modified: 2011-04-01 23:15 EEST (History)
8 users (show)

See Also:


Attachments
screenshot (81.68 KB, image/png)
2011-02-17 17:55 EET, rulfzid
Details
Small test program to illustrate the bug (2.86 KB, text/plain)
2011-02-17 17:56 EET, rulfzid
Details
Another test program (this time a QTreeView) (2.39 KB, text/x-python)
2011-02-17 20:52 EET, rulfzid
Details
A simpler example showing the problem. (819 bytes, text/x-python)
2011-03-25 00:36 EET, Hugo Parente Lima
Details
Example showing the same behaviour on C++ (950 bytes, text/plain)
2011-03-25 00:46 EET, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rulfzid 2011-02-17 17:55:40 EET
Created attachment 266 [details]
screenshot

I'm runnning Ubuntu 10.10, PySide 1.0rc5, Python 2.6.

The drawing of the selection is buggy when I set the selectionbehavior to
QAbstractItemView.SelectRows (see attached screenshot) - It doesn't show only
the row selected as being selected, but draws the selected background on
various individual cells as I click on them.

I'm subclassing QTableView so I can monitor the selectionChanged slot.

If I subclass QTableView without  monitoring the slot, the drawing of the
selection is fine, and the QTableView also works fine - the bug only seems to
appear when you actually do stuff in the subclass.

I've attached a screenshot and a small test program that produces the problem
for me.
Comment 1 rulfzid 2011-02-17 17:56:19 EET
Created attachment 267 [details]
Small test program to illustrate the bug
Comment 2 rulfzid 2011-02-17 20:52:47 EET
Created attachment 268 [details]
Another test program (this time a QTreeView)

It seems that the same bug affects QTreeView as well. I get the same effects
using the sample program attached here as I did with the QTableView.
Comment 3 Hugo Parente Lima 2011-02-18 11:34:48 EET
Appears to be a painting bug from Qt, not PySide, need some more investigation.

Another problem, when I double click a row in your second example the app get
freeze, weird...
Comment 4 Hugo Parente Lima 2011-03-25 00:36:18 EET
Created attachment 290 [details]
A simpler example showing the problem.
Comment 5 Hugo Parente Lima 2011-03-25 00:46:47 EET
Created attachment 291 [details]
Example showing the same behaviour on C++

The same issue occur on C++, you need to call the Qt version of
selectionChanged method to get everything painted right :-/.

Marking the bug as invalid as this is a Qt problem and can be reproduced in
C++.
Comment 6 Hugo Parente Lima 2011-04-01 23:15:52 EEST
Closing bug after release of PySide 1.0.1.