HOW TO CONNECT SCROLL BAR TO WIDGET
-
Hi
There is a widget call
QScrollArea
Place that first and put what ever u
want to scroll around inside that area. -
Why the caps ??
There is also a scrollbar widget you can add
It will emit signals when scrolled and you can hook up your
widget to this signal and do what u need to do. -
Your tabwidget ?
What should it do?
It cannot scroll as such. It could display the value in a label or
something like that but otherwise I have no idea what u expect it should do ? -
@M4RZB4Ni
Hi its all in here
http://doc.qt.io/qt-5/qscrollbar.html#details
But connecting to a random widget will do nothing.IF u have this case,
user click on Tab
In tab there are many widget so he need to scroll to see last of them, then u just use
a scroll area and put all stuff inside. then it will just work. ScrollArea have scrollbars.
U can control if both horz and vert or just horz.