code_junkie

QX11EmbedContainer and QProcess problem

Nov 13th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. QX11EmbedContainer* container = new QX11EmbedContainer(this); // with or without "this" I got the same result
  2. container->show();
  3. QProcess process(container);
  4. QString executable("xterm -into ");
  5. QStringList arguments;
  6. arguments << QString::number(container->winId());
  7. process.start(executable, arguments);
  8.  
  9. QProcess: Destroyed while process is still running.
  10.  
  11. QProcess * process = new QProcess(container);
  12. ...
  13. process->start(executable, arguments);
  14.  
  15. QProcess * process = new QProcess(container);
  16. QString executable("xterm"); // perhaps try "/usr/X11/bin/xterm"
  17. QStringList arguments;
  18. arguments << "-into";
  19. arguments << QString::number(container->winId());
  20. proces->start(executable, arguments);
Add Comment
Please, Sign In to add comment