QGraphicView and fixed viewport
-
Could you be more specific about what you want?
-have you seen a setFixedSize(int, int) function in your mainwindow?
-You can resize the Window to fit your GL stuff, one way to do that is to connect QGLWidget and your QMainWindow with a custom signal and a slot, passing two parameters (width and height) to resize your application.att,
Vitor -
Yes, I have seen a setFixedSize(int, int), but it's not exactly what I want.This function fixed widget size.When I resize my application I need that resize widget size, but viewport size inside scene has been constant.
I'm using QGraphicsView/QGraphicsScene, not OpenGL. -
Are you perhaps mistaking the viewports size with scene size?