I have made a small program that will scroll an area but it wont scroll right, it WILL in fact scroll but it keeps on scrolling no matter what i do, i can slide the vertical scroll bar back upwards and it will continue to scroll the contents of my box until i cant see them anymore.
here is code
void MainWindow::on_verticalScrollBar_sliderMoved(int position)
{
ui->verticalScrollBar->setRange(0, 1000);
ui->scrollArea->scroll(0, 1);
}
void MainWindow::on_verticalScrollBar_sliderMoved(int position)
{
ui->verticalScrollBar->setRange(0, 1000);
ui->scrollArea->scroll(0, 1);
}
To copy to clipboard, switch view to plain text mode
can anyone tell me how to stop the scrolling at a point and then scroll back upwards.
Bookmarks