Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Applications running with OpenGL graphicssystem problem (Windows EC7)
Forum Updated to NodeBB v4.3 + New Features

[Solved] Applications running with OpenGL graphicssystem problem (Windows EC7)

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ephe
    wrote on last edited by
    #1

    After solving my "previous OpenGL problem":http://developer.qt.nokia.com/forums/viewthread/10757/, I've ran into a new one.

    I'm executing an application (either my own one or the example "animatedtiles") on Windows EC7 on a Blaze development platform. When I'm running it without OpenGL it looks fine. But when I'm using OpenGL as a graphicssystem, only the newly drawn parts are visible, the rest of the screen is black.

    I've got the following output:
    Load module....
    ...
    Load module: qglgraphicssystemd4.dll
    Load module: QtOpenGLd4.dll
    Load module: LIBGLESV2.dll
    ...
    Found SGX/MBX driver, enabling FullClearOnEveryFrame
    Found v1.4 driver, enabling brokenTexSubImage
    Found non-Nokia v1.4 driver, enabling brokenFBOReadBack
    QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x455e40)
    Load module: glslcompiler.dll
    Load module: USC.dll

    I don't know if this problem is caused by Qt or OpenGL. Has maybe anyone experienced a similar problem?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      CuteiOS
      wrote on last edited by
      #2

      I can't say anything about your own application (as you don't give any details), but QGraphicsView based applications (like AnimatedTiles) need the viewport update mode changed. In AnimatedTiles you will need to change this line:

      @
      view->setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);

      to:

      view->setViewportUpdateMode( QGraphicsView::FullViewportUpdate );
      @

      Basically, OpenGL needs to do a full redraw for every frame. This code change changes the update mode of the viewport accordingly.

      [EDIT: code formatting, Volker]

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ephe
        wrote on last edited by
        #3

        Thank you very much, now the AnimatedTiles example is working perfectly fine!

        Sadly, my example application is now fully black, nothing is drawn anymore.

        All I'm doing is adding a QDeclarativeView to the main window:

        @
        QVBoxLayout* poLayout = new QVBoxLayout();
        QDeclarativeView* view = new QDeclarativeView();
        view->setSource(QUrl("qrc:/img/SpinningIcon.qml"));
        view->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
        view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);

        poLayout->addWidget(view);
        

        @

        The SpinningIcon.qml draws a rotating image which moves around the screen.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          ephe
          wrote on last edited by
          #4

          The QDeclarativeView is drawn perfectly fine, also in my other examples now.
          But I've still got a problem with the widgets drawn outside the QDeclarativeView. There is a black border around the QDeclarativeView and only the text updates of the labels are drawn. The rest of the screen is black.

          I've also got an examples without a QDeclarativeView, just two labels with text updates and some input fields. Only the labels with the text updates are drawn, the rest of the screen is black.

          Does somebody know what the problem could be? Thank you in advance!

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ephe
            wrote on last edited by
            #5

            I do not have that problem when running the application in full screen mode.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved