[Qt] Caret problems
Paul Ishenin
ip at kmiac.ru
Wed Jul 11 10:52:25 CEST 2007
zeljko wrote:
>
> There's implementation of TCaret for qt2 in QWindows unit of JVCL (CLX part),
> and I think that it's maded by one pixmap (used for caret only) + timer.It's
> written by Andreas Hausladen some years ago.
>
Ok, I've took his implementation and tried it with our widgetset. First
of all we have no BitBlt function in qt bindings, so I replaced it with
QPainter stuff. But also all painting should be done in PaintEvent which
is very difficult.
As result I have attached here patch. Yes, Andreas code is rather
rewritten, but anyway it was his code and to include it into qt
widgetset I should ask him about LGPL license at first.
At second I dont know whether this solution is acceptable. Caret works
not so stable as in windows or in gtk (yes it do redraw by timer, but
sometimes it happens faster and sometimes slower). Maybe some of you can
improve code a bit?
Felipe, what do you think? Can we include it into svn after solving at
least license question.
Best regards,
Paul Ishenin.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qt_caret_1.patch
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20070711/4b75d1ec/attachment-0001.ksh>
More information about the Qt
mailing list