[Qt] Getting x11 info from a device context

zeljko zeljko at holobit.net
Sun May 4 18:42:23 CEST 2008


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);

I've just tested it and it works for me ;)

zeljko



More information about the Qt mailing list