
Originally Posted by
Zyl
I don't think I have any outrageous system tweaks installed. The hackiest thing on this machine is probably Dropbox with its random folder scans.
You'd be suprised how things tend to influence stuff logically unrelated to what the things are meant to do, especially when it comes to Windows.
I tried adding center->winId() at various lines (and even multiple times), but there was no change.
It was only needed once and in theory it shouldn't be needed at all 
I can't help but think the problem to lie somewhere in the Qt layout classes.
Unlikely, especially since I've been using Qt+OpenGL+layouts and didn't experience any slowdowns.
As an experiment, try this:
public:
w = new MyGLWidget(this);
}
protected:
w->setGeometry(0,0, width(), height());
}
MyGLWidget *w;
};
int main(...) {
...
Widget w;
w.show();
...
}
class Widget : public QWidget {
public:
Widget(QWidget *parent = 0) : QWidget(parent) {
w = new MyGLWidget(this);
}
protected:
void resizeEvent(QResizeEvent *re) {
w->setGeometry(0,0, width(), height());
}
MyGLWidget *w;
};
int main(...) {
...
Widget w;
w.show();
...
}
To copy to clipboard, switch view to plain text mode
No layouts, same GL widget code. Is there a slowdown? If yes, what if you replace MyGLWidget with QGLWidget?
Bookmarks