How to hide scrollbar in QScrollArea?

前端 未结 4 792
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 04:26

How can one hide the scrollbars in a QScrollArea? Currently I use the hide() method on the scrollbars returned by QScrollArea::horizontalScro

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 04:48

    From Qt documents for scrollContentsBy():

    Calling this function in order to scroll programmatically is an error, use the scroll bars instead (e.g. by calling QScrollBar::setValue() directly).

提交回复
热议问题