Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

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