QT QPainter Issue

Discussions about using Linux guests in VirtualBox.
Post Reply
d.jurin
Posts: 11
Joined: 11. Feb 2011, 09:54
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: openSuse 11.1/3

QT QPainter Issue

Post by d.jurin »

Hi guys!

Standard QT QPainter class doesn't work!

Code: Select all

void GLWidget::paintEvent(QPaintEvent *event){
     QPainter painter(this);
}
Error:
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.

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! 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.

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!
Last edited by d.jurin on 5. Jul 2011, 22:45, edited 3 times in total.
d.jurin
Posts: 11
Joined: 11. Feb 2011, 09:54
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: openSuse 11.1/3

Re: QT QPainter Issue

Post by d.jurin »

So it has no sense to ask about it on QT site, since the problem is absent on linux without virtualiztion. It is definitely the problem of VirtualBox! And this problem leads to the crush of a bunch of QT applications.

QPainter functionality based on openGL 2 (http://doc.qt.nokia.com/latest/qpainter.html). Maybe VB doesn't support openGL 2 properly? :(

Maybe someone has other ideas?
d.jurin
Posts: 11
Joined: 11. Feb 2011, 09:54
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: openSuse 11.1/3

Re: QT QPainter Issue

Post by d.jurin »

Oh gods! Why nobody reply? Of course it's bit complicated then problems with shared folders... But look, this problem leads to crush all QT apps that put a text over GL graphics !!! Defenetly there is a strong bug in the support of basic GL functionality by VB!

Please fix it !!! Or please put it in the bugs report!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: QT QPainter Issue

Post by Perryg »

You should submit this yourself bugtracker since it is affecting you.
d.jurin
Posts: 11
Joined: 11. Feb 2011, 09:54
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: openSuse 11.1/3

Re: QT QPainter Issue

Post by d.jurin »

I have submitted the bug ticket on this issue:

http://www.virtualbox.org/ticket/9198#preview

Let's see how this develops. Thanks a lot for help!
Post Reply