PDA

View Full Version : About QTreeVew's expanded() signal



yangyunzhao
18th August 2009, 03:32
In my program,when I click the"+", the treeview will emit signal.
But the signal is not as the same as I think. See the picture:
http://www.qtcentre.org/forum/attachment.php?attachmentid=3577&stc=1&d=1250562511

In my opinion,when I click the "+" before "Logic View",the signal's parameter should be "Logic View"'s QMoudelIndex.

But I found that the the signal's parameter was "Logic View"'s parent's QMoudelIndex!

How can I get "Logic View"'s QMoudelIndex when I when I click the "+" before "Logic View"?

Could you give me some helps?Thanks a lot!