QTreeView - Custom Scroll Bar
-
wrote on 18 Aug 2017, 14:28 last edited by
Hello,
I am using QTreeView and it comes with built in scroll bar where I don't have much control, for example, when I press and hold the down arrow in the scroll bar, I want to control the speed of scrolling, etc, etc. I want to control the events from the built in scroll bar. Is it possible?
If not, Is there a way that I can implement my own scroll bar and tell QTreeView to use it?
Thank you!
Kumara
-
Hello,
I am using QTreeView and it comes with built in scroll bar where I don't have much control, for example, when I press and hold the down arrow in the scroll bar, I want to control the speed of scrolling, etc, etc. I want to control the events from the built in scroll bar. Is it possible?
If not, Is there a way that I can implement my own scroll bar and tell QTreeView to use it?
Thank you!
Kumara
wrote on 18 Aug 2017, 15:17 last edited byHi @kumararajas
QTreeView is a QAbstractItemView, which is a QAbstractScrollArea. There you have the functions setHorizontalScrollBar and setVerticalScrollBar. So it should be possible to use your own scrollbars.
-Michael.
-
Hi @kumararajas
QTreeView is a QAbstractItemView, which is a QAbstractScrollArea. There you have the functions setHorizontalScrollBar and setVerticalScrollBar. So it should be possible to use your own scrollbars.
-Michael.
wrote on 23 Aug 2017, 09:04 last edited by@m.sue said in QTreeView - Custom Scroll Bar:
QTreeView is a QAbstractItemView, which is a QAbstractScrollArea. There you have the functions setHorizontalScrollBar and setVerticalScrollBar. So it should be possible to use your own scrollbars.
Thanks for the response Mike!
I will try this and get back with the results.
1/3