[Qt-interest] How to Clip a QX11EmbedContainer by its parent's geometry?
Liu, Raymond
raymond.liu at intel.com
Thu Jun 23 10:50:48 CEST 2011
Hi
I am packing a QX11EmbedContainer with another QWidget as its parent
I wish to clip the QX11EmbedContainer by setting the parent QWidget's geometry. But it won't work, the QX11EmbedContainer still been painted with its geometry.
So how can I achieve the goal to clip it? Thanks.
My codes looks like this :
...
QWidget *window = new QWidget(topwindow);
QX11EmbedContainer *container = new QX11EmbedContainer(window);
container->embedClient(id);
window->setGeometry(0, 0,200, 200);
container->setGeometry(0, 0, 400, 400);
...
The container will show full geometry of 400-400 instead of 200-200
Best Regards,
Raymond Liu
More information about the Qt-interest-old
mailing list