[Qt-embedded-interest] Fwd: Qt browser app with opengl-es2 strange behaviour (not working)
Ashish Soni
asoni at mvista.com
Tue Oct 4 13:11:19 CEST 2011
One more information to add,
I am using Qt4.8-lighthouse with eglFS platform plug-in.
On Tue, Oct 4, 2011 at 4:29 PM, Ashish Soni <asoni at mvista.com> wrote:
> I have enabled opengl-es2 support in Qt/E and I wanted to make a browser
> app and the code is :
>
> int main(int argc, char *argv[]) {
>
> QApplication a(argc, argv);
>
> QGraphicsView g;
> g.setScene(new QGraphicsScene(&g));
>
> g.scene()->setItemIndexMethod(QGraphicsScene::NoIndex);
>
> g.setAttribute(Qt::WA_DeleteOnClose);
>
> g.setOptimizationFlags(QGraphicsView::DontAdjustForAntialiasing);
>
> g.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
>
> g.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
>
> g.setAlignment(Qt::AlignTop | Qt::AlignHCenter);
>
> g.setFrameStyle(QFrame::NoFrame);
>
> g.setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
>
> g.setViewport(new QGLWidget());
>
> g.showFullScreen();
>
> QGraphicsWebView view;
>
> view.load(QUrl("http://www.google.com"));
>
> view.setGeometry(QRectF(0,0,800,480));
>
> view.show();
>
> g.scene()->addItem(&view);
>
> a.exec();
>
> }
>
> I can see google page getting loaded for a fraction of second and then
> after it disappears.
>
> Has anyone face such kind of issue ?
>
> *Error log :*
> This plugin does not support setParent!
> This plugin does not support setParent!
> This plugin does not support setParent!
> no = 0 val = ./google
> no = 1 val = -qws
> - texture upload failed, error code 0x500, enum: 3553 (de1)
>
> QGLShader::QGLShader: 'context' must be the current context or sharing with
> it.
> Warning: "Fragment shader: main=MainFragmentShader,
> srcPixel=ImageSrcFragmentShader,
> composition=NoCompositionModeFragmentShader, mask=NoMaskFragmentShader"
> failed to compile!
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShader::QGLShader: 'context' must be the current context or sharing with
> it.
> Warning: "Fragment shader: main=MainFragmentShader,
> srcPixel=ImageSrcFragmentShader,
> composition=NoCompositionModeFragmentShader, mask=NoMaskFragmentShader"
> failed to compile!
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShader::QGLShader: 'context' must be the current context or sharing with
> it.
> Warning: "Fragment shader: main=MainFragmentShader,
> srcPixel=ImageSrcFragmentShader,
> composition=NoCompositionModeFragmentShader, mask=NoMaskFragmentShader"
> failed to compile!
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShader::QGLShader: 'context' must be the current context or sharing with
> it.
> Warning: "Fragment shader: main=MainFragmentShader,
> srcPixel=ImageSrcFragmentShader,
> composition=NoCompositionModeFragmentShader, mask=NoMaskFragmentShader"
> failed to compile!
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShader::QGLShader: 'context' must be the current context or sharing with
> it.
> Warning: "Fragment shader: main=MainFragmentShader,
> srcPixel=ImageSrcFragmentShader,
> composition=NoCompositionModeFragmentShader, mask=NoMaskFragmentShader"
> failed to compile!
> QGLShaderProgram::bind: program is not valid in the current context.
> QGLShader::QGLShader: 'context' must be the current context or sharing with
> it.
> Warning: "Fragment shader: main=MainFragmentShader,
> srcPixel=ImageSrcFragmentShader,
> composition=NoCompositionModeFragmentShader, mask=NoMaskFragmentShader"
> failed to compile!
> QGLShaderProgram::bind: program is not valid in the current context.
> *
>
> -Ashish
> *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20111004/60fb4853/attachment.html
More information about the Qt-embedded-interest
mailing list