i made special combo box, used qtreewidget display drop down context. have problem, if drop down displayed scroll bar scrolled down. want scrolled up. (it should history combobox, newest entries on top)
i tried overwrote scrolltotop with:
void mycombobox::showpopup() { qcombobox::showpopup(); view()->scrolltotop(); }
this isn't working, scrollbar still on bottom. know why isn't working? or knows better solution? thank you
i solved it.
the problem was, @ qtreewidgets attribute autoscroll true default. disabling solved problem.
Comments
Post a Comment