Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux QOpenGLWidget和Qt平台_Linux_Qt_Opengl_Platform_Vnc - Fatal编程技术网

Linux QOpenGLWidget和Qt平台

Linux QOpenGLWidget和Qt平台,linux,qt,opengl,platform,vnc,Linux,Qt,Opengl,Platform,Vnc,我通过以下方式启动了aQT(即:QT13.2)GUI程序: qt_gui_program -platform vnc 但该程序发出了很多警告: Warning: File:() Line:(0) (08:23:28) QOpenGLWidget is not supported on this platform. Warning: File:() Line:(0) (08:25:08) This plugin does not support createPlatformOpenGLConte

我通过以下方式启动了a
QT
(即:QT13.2)GUI程序:

qt_gui_program -platform vnc
但该程序发出了很多警告:

Warning: File:() Line:(0) (08:23:28) QOpenGLWidget is not supported on this platform.
Warning: File:() Line:(0) (08:25:08) This plugin does not support createPlatformOpenGLContext!
Warning: File:() Line:(0) (08:25:08) QOpenGLWidget: Failed to create context
当平台为
vnc
时,似乎不支持
QOpenGLWidget
。 我有一些相关的问题:

1.当平台为
vnc
时,是什么原因导致无法支持
QOpenGLWidget

2.如何知道某个类是否受特定平台的支持


3.我必须访问远程计算机上的GUI。除了将平台设置为
linux/X11
,还有其他方法吗?

从错误消息来看,设置的vnc环境似乎根本不支持OpenGL。您可以尝试手动创建一个vnc服务器,然后在该服务器上运行应用程序。@G.M.当平台设置为
vnc
时,QOpenGLWidget不受支持的原因是什么?据我所知,这可能是由于许多原因造成的,可能与平台有关。对不起,我不能提供更多信息。