Scrollbar doesn't appear on QListWidget when item starts on visible area.



  • Hello
    when I add new widget to QListWidget I need to have a scrollbar when items goes over visible area.
    but when I add item to list and this item starts in visible area and goes over the area, I have no scrollbar and last item is partly visible. is there any chance to have a scrollbar in this case?



  • have you set setVerticalScrollBarPolicy to any other value than Qt::ScrollBarAsNeeded ?



  • @the_
    no it is Qt::ScrollBarAsNeeded.but scrolbar appears correctly after I resize the main widget even with 1 px.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.