Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QWindow>
- #include <QWidget>
- // QWidget *widget -- as returned from suil_get_widget().
- //
- QWindow *window = QWindow::fromWinId(widget->windId());
- QWidget *container = QWidget::createWindowContainer(window, this);
- setCentralWidget(container);
Advertisement
Add Comment
Please, Sign In to add comment