-
// 启用openGL加速
_graphicsView=new GraphicsView(_scene);
QOpenGLWidget *gl = new QOpenGLWidget();
QSurfaceFormat format;
format.setSamples(4);
gl->setFormat(format);
_graphicsView->setViewport(gl);上述使用QGraphicsView的过程中想使用openGL加速,但是出现加载了的地图放大之后逐渐稀释甚至消失的情况,这是为什么?如果注释掉_graphicsView->setViewport(gl);这一行代码,便不会出现问题,求解!!!!!!!!!!!
-
@AntibodyX said in QGraphicsView with openGL accleartion, resulting in map disappearing:
上述使用QGraphicsView的过程中想使用openGL加速,但是出现加载了的地图放大之后逐渐稀释甚至消失的情况,这是为什么?如果注释掉_graphicsView->setViewport(gl);这一行代码,便不会出现问题,求解!!!!!!!!!!!
Would be good if you would translate this to English
-
-
Hi and welcome to devnet,
This post has been moved to the Chinese sub-forum. Except in the international section, please use English for your queries.
-
@jsulm During the above process of using QGraphicsView, I wanted to use OpenGL to accelerate, but there was a situation where the loaded map gradually diluted or even disappeared after zooming in. Why is this? If commented out_ GraphicsView ->setViewport (gl); With this line of code, there will be no problem, solve the problem
Thanks for replying !!!