I am stuck with a problem in QT. I want my software to have a top bar, with all the software available in a specific folder. So for each item in the folder I add a button with the name of that folder. For that i was thinking of a bar without scroll when the buttons do not reach the limit of the app height, but when they reach that value, a scroll bar appears.
The problem is that i don’t find any way (using design) to do so… I found a simple way to do that with coding, but I cannot use HorizontalLayout :S…)
Thanks in advance for all help.
Best Regards,
Luis Da Costa
You will need a custom widget which contains an item view derived from QAbstractItemView. Then you can have your own buttons which you can show when you need them. QAbstractItemView has the scroll functionalities you will need. By implementing your own delegates you can define the look of your items.