qtreeview - How to know if an item is a leaf level item or not -


see attached image below. have created tree view , have connected doubleclicked signal slot prints row number, column number, haschildren , childcount

when clicked on "property 0", got first print , when clicked on "222.1", got 2nd print shown.

the first print correct because property 0 has 4 children

i expecting 2nd print same. why did give me childcount 0?

i wanted know when clicked on item in 2nd column, whether leaf level item or not.. please explain , help.

enter image description here


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -