Important: Please read the Qt Code of Conduct -

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);
    w.setGeometry(100, 100, 600, 400);
    QString wId = QString::number(container.winId());
    QStringList arguments;
    process.start("/usr/bin/gedit", arguments);
    int status = a.exec();
    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/...?


Log in to reply