How can you not scroll? Is the scroll bar scrollable but the contents don't follow or what?
I'm pretty sure the problem is not with QTextBrowser. Qt Assistant uses QTextBrowser. Launch it and see yourself that the scrolling works there.
Or you can check with a minimal example:
#include <QtGui>
int main(int argc, char *argv[])
{
for (int i = 0; i < 100; ++i)
browser.
append(QString("Line %1").
arg(i
));
browser.show();
return a.exec();
}
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTextBrowser browser;
for (int i = 0; i < 100; ++i)
browser.append(QString("Line %1").arg(i));
browser.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
So if the scrolling works with this, the problem must be elsewhere, right?
PS. Are you possibly overriding any event handlers or using event filters?
Bookmarks