[Qt] Caret problems

zeljko zeljko at holobit.net
Wed Jul 11 12:06:41 CEST 2007


On Wednesday 11 July 2007 11:38, Paul Ishenin wrote:
> Den Jean wrote:
> > On Tuesday 10 July 2007 05:29:33 pm Павел Ишенин wrote:
> >>> definitelly, it must be painted inside paint event.
> >>
> >> That should be reason.
> >
> > look at shapedclock example for timer based painting (timer causes paint
> > event)
>
> I also found this article:
> http://lists.trolltech.com/qt-interest/1997-11/thread00093-0.html
>
> So maybe it is possible to draw outside paintEvent?

Yes but not as mentioned in article (it was ok for Qt1).
Maybe this should help:
QWidget_setAttribute(MyWidget, QtWA_PaintOutsidePaintEvent) 

zeljko




More information about the Qt mailing list