问题描述 嵌入在其它widget中QopenglWidget 不显示图像 解决方法: 不使用 glBindBuffer(GL_ARRAY_BUFFER, xxxx)这样的方法来绑定缓存,而是直接使用 m_program->enableAttributeArray(m_colAttr); m_program->setAttributeArray(m_colAttr, GL_FLOAT, faceColors, 4);