Problems with Open-Source Downloads read and

Automatic Scroll in QTextbrowser, how?

  • Hello guys,

    I am writing a program for typing training, and there is a QTextbrowser in which the text is shown ..
    What i want to achieve is that, the user gets an automatic scroll when he writes the corresponding line .. ..

    QTextBrowser *editor;

    QPointer <QScrollBar> sb;
    sb = ui->editor->verticalScrollBar();


    I want to know the number of lines in the browser .. or to know the number of steps the QTextbrowser has ..

    if i print sb->maximum, it has 0 .. ???

    Any Idea

Log in to reply