VirtualBox

Opened 13 years ago

Last modified 8 years ago

#9198 closed defect

Standard QT QPainter class doesn't work with GL in linux guests! — at Initial Version

Reported by: d.jurin Owned by:
Component: 3D support Version: VirtualBox 4.0.10
Keywords: QPainterGLIssue Cc:
Guest type: Linux Host type: other

Description

Standard QT QPainter class doesn't work with GL!

For example this code leads to crash: void GLWidget::paintEvent(QPaintEvent *event){

QPainter painter(this);

}

Error Message: Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile QGLShaderProgram: shader programs are not supported Segmentation fault

You can meet this problem also with the standard QT openGL Examples:

/usr/lib64/qt4/examples/opengl/2dpainting (http://doc.qt.nokia.com/latest/opengl-2dpainting.html) /usr/lib64/qt4/examples/opengl/overpainting (http://doc.qt.nokia.com/latest/opengl-overpainting.html)

and some others that use QPainter class with GL context.

So I am using openSuse x64 guests with latest VB 4.0.10 and latest GA under Windows 7 x86 host. I have tested this problem on openSuse 11.3, 11.4, 12.1ms2 guests with different QT versions 4.6, 4.7, 4.8, but without success, the same problem everywhere. But on openSuse x86 11.1 guest with QT 4.3 it partially works! Please note, that the problem does not occur at all on linux hosts, so under any non virtualized openSuse with any QT version QPainter class is working fine with GL.

I am developing QT GL visualization program and I need put some text over my 3d, but I am not able to do it since this issue!

Thanks in advance!

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use