[Interest] Mixing painted widgets and ready Qt controls

Konstantin Tokarev annulen at yandex.ru
Tue Feb 17 19:30:28 CET 2015



17.02.2015, 21:16, "Igor Mironchik" <igor.mironchik at gmail.com>:
> Hi.
>
> I have question: is it possible to mix in one widget painted content and
> ready Qt controls. For example I want to draw an image on the top of
> widget and on the bottom to have some Qt controls. How I can do it... I
> will draw image in paint event. Controls will have this widget as parent
> and will be placed with move() to the bottom...
>
> Will it work?

Yes. Painting in paintEvent is always clipped to visible region of widget,
so you won't overpaint other widgets by mistake.

-- 
Regards,
Konstantin



More information about the Interest mailing list