QX11EmbedContainer - after embedding and click on widget -> freeze



  • Hi gurus:)
    I have a question about the QX11EmbedContainer . I followed the tutorial in the ¨QX11EmbedContainer Class Reference¨
    and created simple Qt app embedding another app like gedit here it is:

    @
    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    Dialog w;
    QX11EmbedContainer container;
    QProcess process(&container);
    container.setParent(&w);
    w.show();
    w.setGeometry(100, 100, 600, 400);
    container.setGeometry(0,0,600,400);
    container.setFocusPolicy(Qt::NoFocus);
    QString wId = QString::number(container.winId());
    QStringList arguments;
    process.start("/usr/bin/gedit", arguments);
    int status = a.exec();
    process.close();
    return status;
    }
    @

    And it is indeed embedding in the dialog window, however when i click anywhere within the dialog window everything freezes and i do not know what is the reason for this. I have to kill the host app in order to close the frozen window.

    Could you please look at this code?
    Anything missing/wrong/...?

    cheers
    simon:)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.