PDA

View Full Version : Qt Quick Control Application with QAxWidget and QML



szadek
22nd March 2018, 15:07
Hi,

I would like to build an application using QAxWidget to make a Navigator.
I have a main layout with some child layout and one of them is for my custom web widget (which contains the QAxWidget). Each layout have a widget which are defined with a QML file.

My issue is for the custom web widget : how to embbeded a WebAxWidget (find in Qt Create example) in a widget/layout using QML ?

I read some informations here (https://stackoverflow.com/questions/46589699/qt-embed-an-activex-control) but it's not really help me...


Thanks.


Edit :

When i click on me webwidget / layout, i got this error message :
QQuickWidget cannot be used as a native child widget. Consider setting Qt::AA_DontCreateNativeWidgetSiblings

But I have set my QApplication with


myAppli.setAttribute(Qt::AA_DontCreateNativeWidget Siblings);