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

SetDoubleBuffer



  • Hello,
    I would like to know why these 2 different ways to set double buffer are different:

    1: IN THE MAIN FUNCTION
    QGLFormat f;
    f.setDoubleBuffer(false);
    QGLFormat::setDefaultFormat(f);

    2: IN MY CUSTOM WIDGET
    this->format().setDoubleBuffer(false);

    Then I use:
    bool db = this->format().doubleBuffer();

    With Solution 1 db is "false";
    With Solution 2 db is "true";

    Thank you


Log in to reply