QTextEdit * textEdit;...QScrollBar * scrollBar = textEdit->verticalScrollBar();scrollBar->setValue( scrollBar->maximum() );