Hi! I don't know if I'm understanding correctly, but this is what I tried:
void MyGLWidget
::showEvent(QEvent* event
) {
setGeometry(0, 0, 100, 100);
}
void MyGLWidget::showEvent(QEvent* event)
{
setGeometry(0, 0, 100, 100);
QGLWidget::showEvent(event);
}
To copy to clipboard, switch view to plain text mode
Anyway the behavior is the same.
I tried placing logs around the setGeometry call and it seems showEvent is called after my call to the createNativeWindow is placed.
Problem is I need the final geometry in createNativeWindow as my native APIs don't allow resetting the geometry. Any other way?
Thanks!
Bookmarks