Hi. I'm pretty new in Qt so my question might be stupid, but I can't figure out how to handle my problem.
I have widget with buttons and lineedits inside. Amount of buttons in widget depends on which item is currently selected in QTreeWidget. I added QScrollArea in order to have my widget always in the same size, regardless of how many buttons/lineedits is inside it. But it doesn't work as I want to. I set minimumSize of widget to (200, 150) to see anything. But its too big for 2 buttons and too small for e.g. 20. So I want to resize my widget depending on how many items are in my widget, and I have no idea how to achive that.
PS. Sorry for my English. I'm not a navitve english speaker, and I'm still learning.
Bookmarks