Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Multisampling maximum available samples



  • I have to enable multismpling to have better rendering in qml animations like rotations:

    without enabled multismpling:
    226e5027-a98a-4d48-aabc-3e3c5c831d5e-image.png

    whith enabled multisampling:
    88986782-6f88-4882-bfa4-88df2b03cdca-image.png

    After i set samples in QSurfaceFormat defaultf ormat :

    QSurfaceFormat format;
    format.setSamples(8);
    QSurfaceFormat::setDefaultFormat(format);
    

    It going to this error on some machines

    6262ad43-05a6-44a8-bb03-fe675f1244c3-image.png

    How to get maximum available samples in QSurfaceFormat on each machine? or How to make sure multisampling is supported or not?


Log in to reply