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