[Qt] Getting x11 info from a device context

Luiz Americo Pereira Camara luizmed at oi.com.br
Mon May 5 00:31:58 CEST 2008


zeljko wrote:
> On Sunday 04 May 2008 16:04, Luiz Americo Pereira Camara wrote:
>   
>>     X11Info := QWidget_x11Info(Parent); <---------
>>     
>
> here is problem, you passed nil widget (parent).
>
> you have to check it first
> if parent = Nil then
>  Parent := QApplication_desktop()
> and then call
>   X11Info := QWidget_x11Info(Parent);
>   

Thanks.

I handled the case when Parent is nil by using the QtImage data directly 
instead of using a xlib drawable.

Luiz



More information about the Qt mailing list