Important: Please read the Qt Code of Conduct -

Set Sampling in QQmlApplicationEngine

  • Hey everyone,

    I was working through the "bezier curve": 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?


Log in to reply