Linux QOpenGLWidget和Qt平台
我通过以下方式启动了aLinux 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
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不受支持的原因是什么?据我所知,这可能是由于许多原因造成的,可能与平台有关。对不起,我不能提供更多信息。