Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Weird black screen with mousepointer icons when using QGLWidget

    Mobile and Embedded
    1
    2
    1182
    Loading More Posts
    • 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.
    • J
      JapieKrekel last edited by

      Anybody ever experienced this?

      I have an iMX6 embbedded linux board, with a LCD and touchscreen.

      I have an QML QtQuick 1.1 / C++ application. That works on the target.
      When I want to HW accelerate it and put it on a QGLWidget it shows the first screen of the app. But when touching or clicking with the mouse, I get a black screen with all the mouse pointer icons blown up (like the hand, the arrow, the sand-hourglass, etc), after a screen refresh I get my app screen back. When an animation is accuring, the screen flickers between the app screen and this black mouse icon screen.

      If I port my app to QML QtQuick 2.0/ C++, which is HW accelerated by default and not using the QDeclativeView, but the QQuickView, the app works fine.

      This is what I do to make it a QGLWidget.
      @
      // Set view optimizations not already done for QDeclarativeView
      setAttribute(Qt::WA_OpaquePaintEvent);
      setAttribute(Qt::WA_NoSystemBackground);

      // Make QDeclarativeView use OpenGL backend
      QGLWidget *glWidget = new QGLWidget(this);
      setViewport(glWidget);
      setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
      @

      1 Reply Last reply Reply Quote 0
      • J
        JapieKrekel last edited by

        I switched to QT5.1.0 and figured out there is a environmental variable to hide the cursor on EGL and that seems to do the trick.

        @
        export QT_QPA_EGLFS_HIDECURSOR=1
        @

        Maybe it masks the real problem, but I do not need a mouse pointer.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post