QGLFormat Accumulation Buffer



  • Hi, I'm trying to develop a simple OpenGL Editor using Qt but I've got one problem. No matter what I do, the format of my GLWidget has always the accumulation buffer active and set at 64.
    Here's how I instantiate my GLWidget:

    @MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);
    QGLFormat format;
    format.setAccum(false);
    format.setDoubleBuffer(false);
    glCanvas = new GLWidget(format);

    ui->mainLayout->addWidget(glCanvas);
    

    }

    MainWindow::~MainWindow()
    {
    delete ui;
    }
    @

    Can anybody help me to solve this problem?
    Thanks in advance.



  • If this is the support of Qt community, I think I should port my project to another toolkit. Thanks anyway.


  • Moderators

    Sorry, but there seems to be a misunderstanding: This forum allows to communicate with other Qt users (with a lot of them happening to be trolls). It is not a support site per se. I (and the other trolls) am not payed to do support here. We just like our product and try to help our users in our spare time.

    Providing more information might help you to get better results next time: What kind of environment are you using (OS, kind of GL drivers, etc.)? A working example is the best way to get help: People here are curious and tend to play with everything that looks remotely like it could actually get turned into an executable with a reasonable amount of work.

    I hope you will enjoy your GL programming (using Qt or whatever toolkit you end up using)!

    PS: If you need a dedicated support team then you can always consider using a different type of Qt license. More information on this is available here "here":http://shop.qt.nokia.com/.

    Best Regards,
    Tobias


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.