c++ - QGLWidget maximum size -
i have qt application using opengl drawing qglwidget
, on mac os. on mbp works well, when trying on 30" screen, noticed there window size limit.
if increase window size beyond limit, qglwidget
's content disappears , greyish memory junk visible.
i changed code put qglwidget
on screen. repaint event
setting background black in each iteration.
issue still visible: when resizing widget, black surface disappears , gets replaced memory junk, when size of widget reaches size.
interesting facts:
- when decrease window size, gl surface comes live again
- i have several other gl applications (not qt) running in maximized window, issue not opengl driver/video card
- it seems area of window (nr of pixels) matters, if make window wide, it's height limited , vica versa, if windoe maximized in height, width must small
i found while instantiating qglwidget
using qglformat(qgl::nosamplebuffers)
instead of qglformat(qgl::samplebuffers)
solves issue.
Comments
Post a Comment