Quote Originally Posted by mecrazycoder View Post
But the problem I am facing is text browser display only the last result so can you please tell me how to populate all results(each result per line) in populate. How to integrate text browser with scroll bar. Tanx in advance
The documentation for QTextBrowser is at http://doc.trolltech.com/4.7/qtextbrowser.html, and you can find all its methods here. Also, since QTextBrowser inherits QTextEdit, you can also use the methods in http://doc.trolltech.com/4.7/qtextedit.html.

Anyway, setText() removes old text before adding new ones. To add text without removing the old ones, use append().

If I'm not mistaken, the QTextBrowser should automatically have a scroll bar.