Set Sampling in QQmlApplicationEngine
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();
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;
So, my question is how do I turn on multi-sampling for the QQmlApplicationEngine?