[Qt-interest] missing decoration after deleting a row from a tree view

Ioan Calin Borcoman iborco at gmail.com
Fri May 21 11:42:06 CEST 2010


Hi,

I have a model and 2 tree views attached to it (see the attached code).

The model exposes this internal tree:
- root
  - node 1
    - node 1.1
    - node 1.2

If I expand 'node 1' in one of the views and then remove 'node 1.1' or
'node 1.2', the other view will remove the '+' decoration from 'node
1', even though 'node 1' still has 1 element. If I do the removal
while 'node 1' is expanded in both views, the '+' is not removed. I
was expecting the later behaviour in both cases, regardless of 'node
1' being expanded or not.

Is this a bug? Am I doing something wrong?

I am using Ubuntu Lucid with with QT4 4.6.2-0ubuntu5.

Thanx,

Ionutz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.bz2
Type: application/x-bzip2
Size: 4484 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100521/f713c783/attachment.bz2 


More information about the Qt-interest-old mailing list