Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The graph drawn by QGLWidget is duplicated to other widget of itself.

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 466 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fivestar
    wrote on last edited by A Former User
    #1

    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
    {
        Q_OBJECT
    public:
        explicit MyGLWidget(QWidget *parent = 0);
        ~MyGLWidget();
    ....
    

    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

    ? 1 Reply Last reply
    0
    • F Fivestar

      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
      {
          Q_OBJECT
      public:
          explicit MyGLWidget(QWidget *parent = 0);
          ~MyGLWidget();
      ....
      

      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

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved