首页 > 解决方案 > QOpenGLWidget 和 Qt 平台

问题描述

我通过以下方式启动了一个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

平台为 时似乎QOpenGLWidget不支持vnc。我有一些相关的问题:

QOpenGLWidget1.平台不支持的原因有vnc哪些?

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

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

标签: linuxqtopenglplatformvnc

解决方案


推荐阅读