×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    67

    Question QInputDialog problem with OpenGL on new Belle devices

    Hello everyone.

    I am running into a problem with text input on specifically the new Belle devices. I am going by... wait for it... the epong game example, and using QInputDialog::getText to pop up a text input on Symbian.

    On S^3 devices, running Anna or Belle, everything works fine. However on new Belle devices such as the 700, OpenGL seems to be put into a weird state. After the dialog closes, eglswapbuffers will fail with error EGL_NOT_INITIALIZED.

    I've tried completely destroying and recreating the EGL environment with:
    Code:
    eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
    eglDestroyContext(eglDisplay, eglContext);
    eglDestroySurface(eglDisplay, eglSurface);
    eglTerminate(eglDisplay);
    However when reinitialising egl after this, eglCreateContext fails with EGL_BAD_ATTRIBUTE which doesn't make much sense to me, as the only attributes are the ones setting the client version. Again on an S^3 phone such as the N8 this works fine.

    You can reproduce this problem with the current Epong example from svn on a new Belle device, by getting a high score and entering your name.

    As always your help is very much appreciated.

  2. #2
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    67

    Re: QInputDialog problem with OpenGL on new Belle devices

    Looks like this is a bug in the new Belle devices, so I'm going to see what workaround may be possible. Bug report is now here: http://www.developer.nokia.com/bugs/show_bug.cgi?id=937

  3. #3
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    67

    Re: QInputDialog problem with OpenGL on new Belle devices

    If anyone faces the same problem, I worked around this by using a QGLWidget to display the GL. This works on Belle and S^3 - however for some reason currently not on N9. It could be due to some other settings though. Having a very similar QWidget with the same functions (initializegl, paintgl, updategl etc) which just uses EGL and changing for that one with a compile flag should work as well for N9 I think.

Similar Threads

  1. Replies: 3
    Last Post: 2012-01-09, 08:38
  2. Belle firmware for older devices
    By pippo2010 in forum Publishing to Nokia Store
    Replies: 5
    Last Post: 2011-12-10, 09:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×