I have a QTextBrowser and when I have a lot of data in it, then I can see the scroll bar, but I cannot scroll.
How do I set the QTextBrowser to scroll ?
Printable View
I have a QTextBrowser and when I have a lot of data in it, then I can see the scroll bar, but I cannot scroll.
How do I set the QTextBrowser to scroll ?
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:
So if the scrolling works with this, the problem must be elsewhere, right?Code:
#include <QtGui> int main(int argc, char *argv[]) { QTextBrowser browser; for (int i = 0; i < 100; ++i) browser.show(); return a.exec(); }
PS. Are you possibly overriding any event handlers or using event filters?