1

I wan't to display an extern X Application inside a Widget of a Qt program, even if the OS doesn't have a window manager. Is it possible? If so, how can I do it? Or where should I begin?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
ehopperdietzel
  • 121
  • 1
  • 10
  • If you have the window id(s) for the X app then you could make use of [QWidget::createWindowContainer](http://doc.qt.io/qt-5/qwidget.html#createWindowContainer). – G.M. Jun 06 '17 at 15:33
  • Thanks! I read that, but do you know if the performance would be good? Or if there is a better way to do it? – ehopperdietzel Jun 06 '17 at 16:16
  • Depends on precisely what you mean by "performance". I've used it a lot in the past and have never had anything I would consider a performance issue. – G.M. Jun 06 '17 at 16:27
  • Thanks a lot! I'll give it a try :) – ehopperdietzel Jun 06 '17 at 16:45
  • I'd start by taking a look at the existing open source window managers built in Qt. KDE is the obvious one, but the code base is pretty large. You might also check out LXQt. – MrEricSir Jun 06 '17 at 17:41
  • Good idea, thanks for the tip :) I finally found the best way to go is to use Xlib libraries inside my app. [EXAMPLE](https://github.com/jichu4n/basic_wm) – ehopperdietzel Jun 06 '17 at 19:42
  • Creating a window manager is very different from embedding a single known window in a Qt widget. Decide which one you want. – n. m. could be an AI Jul 05 '17 at 09:43

0 Answers0