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. Weird black screen with mousepointer icons when using QGLWidget
Forum Updated to NodeBB v4.3 + New Features

Weird black screen with mousepointer icons when using QGLWidget

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.4k 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.
  • J Offline
    J Offline
    JapieKrekel
    wrote on last edited by
    #1

    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
    0
    • J Offline
      J Offline
      JapieKrekel
      wrote on last edited by
      #2

      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
      0

      • Login

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