Expandable list view with customized scrollbar
-
Hello,
I want to build a widget like this one we can find in Word for example.
http://imagizer.imageshack.us/v2/xq90/922/uJV74m.png
http://imagizer.imageshack.us/v2/xq90/923/620JD0.pngSo, 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 :)Thanks!
-
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