[vlc-devel] commit: Qt4: wait for VideoWidget::paintEvent ( Rémi Denis-Courmont )
Laurent Aimar
fenrir at via.ecp.fr
Sat Jun 21 00:33:28 CEST 2008
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.
--
fenrir
More information about the vlc-devel
mailing list