Scrollbar in Scroll area cant set value
-
Hy, I have a scroll area with some items in it. I want to move the scrollbar to a set value (the middle for example), but it's not allowing me to do so. It throws me a "Member Access to incomplete type" error.
(Don't know if this is relevant, but my scroll area has a "container" widget in whose layout I dump a bunch of labels)
The ui:

The cpp file:

The app in action:

The idea is to move the scroll bar so that i can see the search node, in this case 3 which is further down the scroll area. Somewhat like this:

-
Hy, I have a scroll area with some items in it. I want to move the scrollbar to a set value (the middle for example), but it's not allowing me to do so. It throws me a "Member Access to incomplete type" error.
(Don't know if this is relevant, but my scroll area has a "container" widget in whose layout I dump a bunch of labels)
The ui:

The cpp file:

The app in action:

The idea is to move the scroll bar so that i can see the search node, in this case 3 which is further down the scroll area. Somewhat like this:

@andredubbs22 Access to incomplete type means it's only forward declared and you're simply missing
#include <QScrollBar>. -
@andredubbs22 Access to incomplete type means it's only forward declared and you're simply missing
#include <QScrollBar>.@Chris-Kawa omg it worked bro thanks alot!!
-
A andredubbs22 has marked this topic as solved on