XMoveResizeWindow doesnot work in Qt application
-
Hi,
I am very new to xlib programming. I wrote one sample Qt UI project inside that I am just resizing my main app window using Xlib API. But it is failing to resize my window.
I am working on Ubuntu.Code snippet:-
@
Display *display = XOpenDisplay(NULL);
int iRet = XMoveResizeWindow(display, w.winId(), 20,20,100,100);
@iret is coming as 1 .
Regards
Ashish[EDIT: code formatting, please wrap in @-tags, Volker]
-
What does this question have to do with Qt?
-
Hi,
Thanks a lot for your suggestion. I can call Qt ResizeGeometry() to resize the window, but my problem is that inside the Qt code I need to change the parent of widegt to some other external running application. and since that application is not being developed using Qt so that the window of that application will not inherit from QWidget and for changing the parent using Qt , the parent window must be QWidget *.
I have to use XReparentWindow() inside Qt code.
under windows I have achieved this using SetParent API and it works fine.Can we not do this stuff in Linux.
Please advice.