Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2008-04

More classes needed

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko

Hi,
Den, I need QPageSetupDialog to implement printing with qt lcl, also if U have some spare time I'll need QProcess, QAbstractTextDocumentLayout (this one is used to render html pages - so maybe it'll come into qt-lcl) for my private purposes ;)

tnx.

zeljko

Den Jean
to zeljko
zeljko wrote
Den, I need QPageSetupDialog to implement printing with qt lcl, also if U have some spare time I'll need QProcess, QAbstractTextDocumentLayout (this one is used to render html pages - so maybe it'll come into qt-lcl) for my private

Linux done.

but QAbstractTextDocumentLayout is a mess:
* abstract:
you will need to subclass anyhow
* PaintContext:
struct within class, need to fix it later, or you
fix it in a manually created subclass.
* used an enum defined with namespace construct (fixed manually)

note for qprocess: mind the definition of Q_PID in Qt.

other platforms will follow

zeljko
to Den Jean
Den Jean wrote 7 lines
On Friday 25 April 2008 15:23:25 zeljko wrote: > Den, I need QPageSetupDialog to implement printing with qt lcl, also if U > have some spare time I'll need QProcess, QAbstractTextDocumentLayout > (this one is used to render html pages - so maybe it'll come into qt-lcl) > for my private Linux done.

tnx, now I see that it have PaintContext class inside, and only that is needed, seem that I'll have to write QLCLAbstractTextDocument ;) This is code which can render HTML page inside QTableWidget:

painter->save();
QTextDocument doc;
doc.setHtml( index.data().toString() );
QAbstractTextDocumentLayout::PaintContext context;
/* PaintContext is here */
doc.setPageSize( option.rect.size());
painter->translate(option.rect.x(), option.rect.y());
doc.documentLayout()->draw(painter, context);
painter->restore();

Anyway tnx.

z.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20080429/3649c631/attachment.html>

zeljko
to Den Jean: Linux done. but QAbstractTextDocumentLayout is a mess: * abstract: you will need to…
Den Jean wrote 17 lines
On Friday 25 April 2008 15:23:25 zeljko wrote: > Den, I need QPageSetupDialog to implement printing with qt lcl, also if U > have some spare time I'll need QProcess, QAbstractTextDocumentLayout > (this one is used to render html pages - so maybe it'll come into qt-lcl) > for my private Linux done. but QAbstractTextDocumentLayout is a mess: * abstract: you will need to subclass anyhow * PaintContext: struct within class, need to fix it later, or you fix it in a manually created subclass. * used an enum defined with namespace construct (fixed manually) note for qprocess: mind the definition of Q_PID in Qt.

QProcess is fine ;)

other platforms will follow

ok.

Just one more question. Is it so hard to add QString & QChar into bindings ? I think that we'll need QChar for SlotKey() to properly bind qtkeys to LCL keys.

zeljko