You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

brad_mssw

Beginner

  • "brad_mssw" is male
  • "brad_mssw" started this thread

Posts: 4

Location: Gainesville, FL

Occupation: Engineer

  • Send private message

1

Thursday, July 1st 2004, 6:55pm

QSimpleRichText alternatives for simple HTML rendering??

Currently, we're generating print-jobs using simple HTML. This works
fantasically with small print jobs like receipts, but when you get into
larger reports (not even too large, just a simple table with say 1000
rows), it takes many minutes to finish the QSimpleRichText initialization
(which I guess is what initially renders the job).

After the initial call, using the draw() function to output the job to
the printer is an acceptable speed. Is there something else I
should be using to process this HTML, specifically for printing?
Please note we support Unix/MacOSX/Windows so we'd prefer a native
Qt solution rather than depending on external libs.
Would it be possible to use QTextBrowser instead? As I think that renders
quite a bit faster, but doesn't appear to implement a draw() suitable
for sending to a QPainter.

Thanks!
-Brad