[Qt-interest] Problem when using QPainter on child widgets
John McClurkin
jwm at nei.nih.gov
Wed Jul 29 13:37:45 CEST 2009
Deepak Angeshwar wrote:
> All,
>
> I have a custom widget inside another widget, when I try to initialize
> QPainter on the child widget (custom widget) it throws the warning
>
> QPainter::begin: Paint device returned engine == 0, type: 1
> QPainter::setClipPath: Painter not active
> QPainter::clipRegion: Painter not active
>
> Has anyone faced the same problem?
>
>
>
You can only start a painter for a widget in the paint event of that widget.
More information about the Qt-interest-old
mailing list