Registered Member
|
Hi all,
I have successfully implemented QAbstractItemModel. The tree behaves correctly. However the "root" node is not shown. how can I accomplish this? Or is it just not possible? (I need to add another subnode for the root node then?) Thanks in advance! |
Administrator
|
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I looked at the link and the default for this value should be true. And as I never have set it to false this probably solve my problem. I am rather thinking that I maybe might have build my tree incorrect. However it is only the top root item (which has 2 childs) that is not shown. |
Administrator
|
You will likely need to add a sub-node to act as the root in this case. I checked my code (for the Device Actions KCM) and it does the same.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
That indeed did the trick. I have to say this works in an unlogical way:) Thanks! |
Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]