[SOLVED]QToolBox wihout scrollbars
-
Hi All,
How can I prevent showing scrollbars in QToolBox?
I googled for this issue a lot but I couldn't find any solution for it.
-
Take a look at these 2 docs:
"QAbstractScrolLArea-Horizontal":http://doc.trolltech.com/4.3/qabstractscrollarea.html#horizontalScrollBarPolicy-prop
"QAbstractScrollArea -Vertical":http://doc.trolltech.com/4.3/qabstractscrollarea.html#verticalScrollBarPolicy-prop -
[quote author="Blizzard" date="1330712510"]Take a look at these 2 docs:
"QAbstractScrolLArea-Horizontal":http://doc.trolltech.com/4.3/qabstractscrollarea.html#horizontalScrollBarPolicy-prop
"QAbstractScrollArea -Vertical":http://doc.trolltech.com/4.3/qabstractscrollarea.html#verticalScrollBarPolicy-prop[/quote]'class QToolBox' has no member named 'setHorizontalScrollBarPolicy'
-
doesn't it only show scrollbars when it can't fit all your content? why would you want to remove them?
-
[quote author="Blizzard" date="1330905570"]doesn't it only show scrollbars when it can't fit all your content? why would you want to remove them?[/quote]
I'm working on creating a sidebar has many categories (QToolBox tabs) similar to "Planner's":https://live.gnome.org/Planner sidebar.
http://s7.postimage.org/idonwkpzf/screenshot_1.jpg -
Voila! I fix this issue by using stylesheet as following:
@QScrollBar:horizontal {
height: 0px;
width: 0px;
}QScrollBar:vertical {
height: 0px;
width: 0px;
}@ -
Thanks for sharing your solution, how did you go about adding the different categories to the sidebar?