5

I need QX11EmbedContainer, but in new version of Qt 5.6 it dissapeared.

Is there another alternative to QX11EmbedContainer that works/exists in Qt 5.6?

demonplus
  • 5,613
  • 12
  • 49
  • 68
scastiello
  • 73
  • 4
  • Yes, all QX11EmbedContainer stuff was excluded from Qt 5. Have you got already any existing code which we can look at or could you explain what would you like to do with QX11EmbedContainer? – demonplus Sep 15 '16 at 15:58
  • 5
    You might want to take a look at [`QWidget::createWindowContainer`](http://doc.qt.io/qt-5/qwidget.html#createWindowContainer) and [`QWindow::fromWinId`](http://doc.qt.io/qt-5/qwindow.html#fromWinId). I think those should get you what you want. – G.M. Sep 15 '16 at 17:19
  • It works correctly, thanks you very muchas. – scastiello Sep 16 '16 at 20:00

1 Answers1

0

This is the comment from @g-m copied as a proper answer:

You might want to take a look at QWidget::createWindowContainer and QWindow::fromWinId. I think those should get you what you want.

Suzanne Soy
  • 3,027
  • 6
  • 38
  • 56