how to adjust sizes of QTextBrowser?
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:
Code:
bro->setText("<img src=\"image.jpg\" border=\"0\" /> and sample text");
bro->show();
As a result, QTextBrowser has always the same sizes, which doesn't fit it's contents.
What can I do to fit QTextBrowser exactly to it's contents?
bro->setFixedSize(bro->sizeHint());
doesn't work :(
Re: how to adjust sizes of QTextBrowser?
Why don't you try with a QLabel instead?
Re: how to adjust sizes of QTextBrowser?
Quote:
Originally Posted by Chicken Blood Machine
Why don't you try with a QLabel instead?
I'd like to have links (and could open them with browsers) there.