Set Sampling in QQmlApplicationEngine
-
Hey everyone,
I was working through the "bezier curve":http://qt-project.org/doc/qt-5/qtquick-scenegraph-customgeometry-example.html example for subclassing a QQuickItem, and I ran into some issues with turning on multi-sampling. In the example code from main.cpp they do:
@ QQuickView view;
QSurfaceFormat format = view.format();
format.setSamples(16);
view.setFormat(format);
view.setSource(QUrl("qrc:///scenegraph/customgeometry/main.qml"));
view.show();@But I would like to turn on multi-sampling and use an ApplicationWindow in my qml. So, I made a default Qt Quick Application, which has a main.cpp that looks like:
@ QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));@So, my question is how do I turn on multi-sampling for the QQmlApplicationEngine?
Thanks!