Hello, Items specific to the Qt widget set.
I've got a suggestion from devels about how to speedup synedit. Den, can you add this low level qt routine (QPaintEngine_drawText)? And related to that routine structure QTextItem?

Mailing lists / qt / 2007-09
4 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello, Items specific to the Qt widget set.
I've got a suggestion from devels about how to speedup synedit. Den, can you add this low level qt routine (QPaintEngine_drawText)? And related to that routine structure QTextItem?
I've got a suggestion from devels about how to speedup synedit. Den, can you add this low level qt routine (QPaintEngine_drawText)? And related to that routine structure QTextItem?
I see that I removed it because the method contains an undocumented parametertype QTextItem
see Qt Doc:
http://doc.trolltech.com/4.3/qpaintengine.html#drawTextItem You cannot click on the QTextTitem Class. It is neither in the the All Classes list: http://doc.trolltech.com/4.3/classes.html
My generator has assumptions, classes like that are troublemakers and part of a list : QtClassesToAvoid. Automatically every method that contains a parameter of that type is skipped.
I will look into it.
Den Jean
My generator has assumptions, classes like that are troublemakers and part of a list : QtClassesToAvoid. Automatically every method that contains a parameter of that type is skipped.
http://archives.devshed.com/forums/kde-96/updated-pyqt4-documentation-1840412.html others have the same problem.
I really do no think we should use undocumented, perhaps not available functions in the next version.
http://lists.trolltech.com/qt-interest/2006-10/thread01252-0.html
Can you provide more detail about what you would do with it. What the hints were of these devels. To me it seems the aim is only to be able to insert speed optimization for Qt Core. (QRasterPaintEngine). In the end, drawTextItem is called anyhow by TextOut.
My problem, how to insert the strange the constructor-less class QTextItem. Just look at the implementation: using a descendant !!! QTextItemInt. C++ madness.
// TextItemInt descends from TextItem
class QTextItemInt : public QTextItem
//but the implementation of QTextItem uses QTextItemInt:
qreal QTextItem::descent() const
{
const QTextItemInt *ti = static_cast<const QTextItemInt *>(this);
return ti->descent.toReal();
}.. still looking into it, but please look up if it is worthwhile.
regards,
Den Jean
Dont warry, I solved speed problem by another workaround - so no more need in that drawTextItem.
But things I requested for QAbstractScrollArea are still needed.
Best regards,
Paul Ishenin.