Qt World Summit: Submit your Presentation

The graph drawn by QGLWidget is duplicated to other widget of itself.

  • alt text

    I made two widgets on one window as above. They are child widget of QGLWidget such that

    #ifndef MYGLWIDGET_H
    #define MYGLWIDGET_H
    #include <QGLWidget>
    #include <QtSql>
    #include "conndb.h"
    class QWheelEvent;
    class MyGLWidget : public QGLWidget
        explicit MyGLWidget(QWidget *parent = 0);

    As you seen the pictures, I draw a graph on A, not B. Then, if I do other actions like pressing other button or tab ley,... , then the graph in A is copied to B of itself. I don't know the reason of this phenomenum. Could you expain this?

    Edit: Added code tags -- @Wieland

  • Hi! Maybe the same bug as in this thread: https://forum.qt.io/topic/71826.

Log in to reply