Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QX11EmbedWidget::embedInto ( WId  id  ) 

When this function is called, the widget embeds itself into the container whose window ID is id.

If id is not the window ID of a container this function will behave unpredictably.

Definition at line 487 of file qx11embed_x11.cpp.

References QWidget::internalWinId(), and QWidget::x.

{
    Q_D(QX11EmbedWidget);
    d->container = id;
    switch (XReparentWindow(x11Info().display(), internalWinId(), d->container, 0, 0)) {
    case BadWindow:
        d->emitError(InvalidWindowID);
        break;
    case BadMatch:
        d->emitError(Internal);
        break;
    case Success:
    default:
        break;
    }
    QTLWExtra* x = d->extra ? d->extra->topextra : 0;
    if (x)
        x->frameStrut.setCoords(0, 0, 0, 0);
    d->data.fstrut_dirty = false;
}


Generated by  Doxygen 1.6.0   Back to index