PDA

View Full Version : Connect two different textedit scrollbars



MrAnderson1983
30th April 2014, 10:17
Hello,

i just want to connect scrollbars of two different textedits. So when you scroll down on the first textedit, the same action should be proceeded on the second textedit and otherwise. I tried to connect both scrollbars, but i failed to determine sender and receiver (this->ui->textEdit ....).

Is there any way how i can connect scrollbars to my textedits and connect both scrollbars with each other.

anda_skoa
30th April 2014, 11:19
QTextEdit is a QAbstractScrollArea and that class has accessors for its two scrollbars

Cheers,
_