My initial problem was that I didn't want to give a fix width. It should just take as many as it needed. But even though I called adjustSize and/or set the size policy of the listWidget to preferred and the and the stackedWidget to expanding it took half of the size of the whole window.
Thanks for the tip with the buttons, I'll try it and post the result later
Bookmarks