I am not able to get a Scroll bar. I declared the QAbstractScrollBarPolicy in main.cpp and worked the commands given below
QAbstractScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
QAbstractScrollArea::setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
getting the following error
main.cpp:18: error: cannot call member function ‘void QAbstractScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)’ without object
↧