[vlc-devel] commit: Qt4: wait for VideoWidget::paintEvent ( Rémi Denis-Courmont )

Rémi Denis-Courmont rdenis at simphalempin.com
Sat Jun 21 10:38:30 CEST 2008


Le samedi 21 juin 2008 01:33:28 Laurent Aimar, vous avez écrit :
> On Fri, Jun 20, 2008, Rémi Denis-Courmont wrote:
> > Le vendredi 20 juin 2008 21:58:45 Laurent Aimar, vous avez écrit :
> > >  Could you check if winId() inside paintEvent() returns the same value
> > > than the one you first retreive ? (For me winId() inside the
> > > constructor is not the same than the one inside paintEvent() for my
> > > small program, and only the latter can be used).
> >
> > I am retrieving winId() only _after_ paintEvent()...
>
> Maybe you need to add
>         // Under X11, we need to flush the commands sent to the server
>         #ifdef Q_WS_X11
>             XFlush( QX11Info::display() );
>         #endif
> before using the winid() value.

Not working either, as far as I can tell.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list