qx11embedcontainer

QT How to embed an application into QT widget

我与影子孤独终老i 提交于 2019-12-29 04:22:05
问题 In our project we have three independent applications, and we have to develop a QT control application that controls these three applications. The main window will be seperated to three sub windows - each one display another one application. I thought to use QX11EmbedWidget and QX11EmbedContainer widgets, but two problems with that: The QX11Embed* is based on X11 protocol and I dont know if it's supported on non-x11 systems like Windows OS. Since QT 5 these classes are not existing, and the

QX11EmbedWidget and QX11EmbedContainer

北城余情 提交于 2019-12-21 05:34:28
问题 Can one place an arbitrary program (firefox, openoffice, etc...) in a QX11EmbedContainer? The fllowing seems, to work int main(int argc, char *argv[]) { QApplication app(argc, argv); QX11EmbedContainer container; container.show(); QProcess * process = new QProcess(&container); QString executable("xterm"); QStringList arguments; arguments << "-into"; arguments << QString::number(container.winId()); process->start(executable, arguments); int status = app.exec(); process->close(); return status;

QX11EmbedContainer code error

这一生的挚爱 提交于 2019-12-13 03:40:38
问题 Given below is the code for embedding an application using QX11EmbedContainer. #include "mainwindow.h" #include <QApplication> #include <QX11EmbedContainer> #include <QProcess> using namespace std; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); QX11EmbedContainer container; container.show(); QProcess process(&container); process.start("C:/Users/Administrator/Desktop.../.exe"); int status=a.exec(); process.close(); return status; } On running the

QT How to embed an application into QT widget

a 夏天 提交于 2019-11-28 21:41:40
In our project we have three independent applications, and we have to develop a QT control application that controls these three applications. The main window will be seperated to three sub windows - each one display another one application. I thought to use QX11EmbedWidget and QX11EmbedContainer widgets, but two problems with that: The QX11Embed* is based on X11 protocol and I dont know if it's supported on non-x11 systems like Windows OS. Since QT 5 these classes are not existing, and the QT documentation doesn't mention why. So that I dont know whether to use it or not - I'll be happy to