qt - How to prepend a child item in qtreewidgetitem? -


i want keep latest child nodes in top level items in qtreewidget, how possible ?

normally qtreewidgetitem::addchild() append child item, tried qtreewidgetitem::insertchild(0, childitem) doesnt helped me.

i using qt 4.8.4 (msvc 2010, 32 bit), in win 7.

you can read in documentation of qtreewidgetitem::insertchild if child item inserted in tree widget, insert again not produce effect.

then workaround use qtreewidget::removechild before, , after insert @ first place.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -