Forcing the last item in a QListWidget to appear at the very bottom of the list



  • I'd like to implement a QListWidget that has one particular QListWidgetItem that will always be fixed at the very bottom of the visible portion of the widget. This will always be the same item and it should always appear at the bottom in the same way the first item maintains it's position at the top. The figure below illustrates what I'm after.

    !http://i.stack.imgur.com/3Tvgw.png!

    If I were laying out widgets in a layout, I would use QBoxLayoutaddStretch to force the widgets to remain apart, but there doesn't appear to be anything similar for QListWidget. Does anyone have any idea how I could go about achieving this?



  • you could use insertItem() instead of addItem() to add new items...


Log in to reply
 

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