Qt-interest Archive, December 2006
QTextBrowser slow
Message 1 in thread
Users of QT-
I am building an application in which I am reading HTML files via a
QTextBrowser object. One file is 1.7 MB and it loads extremely slow
(20 sec). I am building this on a Mac running OS X 10.4.8. I
haven't tried on other machines yet. But I know that Safari and
Firefox can load the same file very quickly, so I'm sure it is a QT
4.2 issue. I have tried compiling in both debug and release modes
and I see no difference.
I have also noticed that the QT Assistant runs fairly slow on my mac
as well. I have used this on Windows and it feels much snappier.
Does anyone have any idea why I would be having these problems?
-----------------------------------------------------
Justin M. Bradley
Research Assistant
MAGICC Lab
Electrical and Computer Engineering
Brigham Young University
http://www.et.byu.edu/~jmb275
jmb275@xxxxxxxxxx
-----------------------------------------------------
Message 2 in thread
On 13.12.06 23:24:28, Justin Bradley wrote:
> I am building an application in which I am reading HTML files via a QTextBrowser object. One
> file is 1.7 MB and it loads extremely slow (20 sec). I am building this on a Mac running OS X
> 10.4.8. I haven't tried on other machines yet. But I know that Safari and Firefox can load the
> same file very quickly, so I'm sure it is a QT 4.2 issue. I have tried compiling in both debug
> and release modes and I see no difference.
QTextBrowser is not supposed to be used as a Webbrowser replacement. Its
not meant to display really large documents (and 1.7Megs pure HTML is
fairly large), real browsers are optimized for this.
I suggest you think about alternatives to QTextBrowser, like loading the
system default browser with your file via QDesktopService.
Andreas
--
[ signature omitted ]
Message 3 in thread
"Andreas Pakulat" <apaku@xxxxxx> wrote in message
news:20061214095012.GB9632@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> QTextBrowser is not supposed to be used as a Webbrowser replacement. Its
> not meant to display really large documents (and 1.7Megs pure HTML is
> fairly large), real browsers are optimized for this.
>
> I suggest you think about alternatives to QTextBrowser, like loading the
> system default browser with your file via QDesktopService.
There seems to be a problems with QTextDocument and html.
There are currently two tasks: 137691 and 135470 concerning this
and both are marked as fixed in 4.3.
--
[ signature omitted ]