cssdata
cssdata

Reputation: 153

Instantiate a QQuickView within a QDialog Window

I'm converting from qt4 to qt5. I had the following code:

mpDV = new QDeclarativeView(QDialog*);

... which worked perfectly.

I can't do this with QQuickView because it expects a QWindow* as argument.

Is there a quick work-around?

Thanks.

Upvotes: 0

Views: 380

Answers (2)

cssdata
cssdata

Reputation: 153

sorry for posting, found an answer: There is a new function (tagged preliminary) called QWidget::windowHandle(), which does the trick.

Upvotes: 1

peppe
peppe

Reputation: 22724

Use QWidget::createWindowContainer.

Upvotes: 0

Related Questions