I was blown away by the amount of help I got here. Thanks guys For future Googlers, here's there code I ended up using.
QScrollBar* scrollbar
= scrollArea
->verticalScrollBar
();
QObject::connect(scrollbar,
SIGNAL(rangeChanged
(int,
int)),
this,
SLOT(moveScrollBarToBottom
(int,
int)));
QScrollBar* scrollbar = scrollArea->verticalScrollBar();
QObject::connect(scrollbar, SIGNAL(rangeChanged(int,int)), this, SLOT(moveScrollBarToBottom(int, int)));
To copy to clipboard, switch view to plain text mode
void moveScrollBarToBottom(int min, int max)
{
Q_UNUSED(min);
scrollArea->verticalScrollBar()->setValue(max);
}
void moveScrollBarToBottom(int min, int max)
{
Q_UNUSED(min);
scrollArea->verticalScrollBar()->setValue(max);
}
To copy to clipboard, switch view to plain text mode
Though I used Chris's method, norobro's was equally valid.
Thanks again guys
Bookmarks