I'd like to make a QTextBrowser (as a separated window - not child), but it must display all it's contents without scrolling.
example code:
As a result, QTextBrowser has always the same sizes, which doesn't fit it's contents.Qt Code:
bro->setText("<img src=\"image.jpg\" border=\"0\" /> and sample text"); bro->show();To copy to clipboard, switch view to plain text mode
What can I do to fit QTextBrowser exactly to it's contents?
bro->setFixedSize(bro->sizeHint());
doesn't work
Bookmarks