Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Expandable list view with customized scrollbar
Placid last edited by
I want to build a widget like this one we can find in Word for example.
So, there is a list view using a specific scrollbar with 3 buttons and no scroll.
And when you click on the last button at the bottom right, a new list view with a classic scrollbar is shown over the previous list view (hidden when losing focus). So exact same behavior as in Word.
We are already capable of displaying a list view with custom content.
So my main concern is actually how to build the widget in the first image : the list view with the custom scrollbar (3 buttons, no scroll).
What is the proper way to do this ?
Any help would be much appreciated :)
Hi and welcome to devnet,
For the buttons, you can use QAbstractButton as base and put them in a QVBoxLayout with no spacing and no margin.
And then put your list view and buttons widgets in a QHBoxLayout again with no margin nor spacing.
Disclaimer: I'm not affiliated with DevMachines
That said, depending on your needs, you may be interested by QTitanRibbon.
Hope it helps