Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. EGLFS problem, QGraphicsView using QGLWidget as viewport
Forum Updated to NodeBB v4.3 + New Features

EGLFS problem, QGraphicsView using QGLWidget as viewport

Scheduled Pinned Locked Moved Unsolved General and Desktop
qglwidgetqgraphicsvieweglfs
2 Posts 2 Posters 1.8k 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.
  • L Offline
    L Offline
    luca
    wrote on last edited by luca
    #1

    Hi all,
    I'm trying to use OpenGL with a QGraphicsView.
    It seems that to get "benefit" of opengl support using a QGraphicsView you only need to set a viewport as the following code:

    QGraphicsView view(&scene);
    view.setViewport(new QGLWidget());
    

    so I'm trying with Colliding Mice Qt example to start from a working small project.
    It works fine on a Linux desktop PC.
    The main target of my test is to start the application using EGLFS platform but there is a problem. When I start the application as:

    ./collidingmice -platform eglfs
    

    I get the following error:

    EGLFS: OpenGL windows cannot be mixed with others.
    Aborted
    

    Is it a BUG or is there a solution?

    Thanks

    Luca

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I may be wrong but based on this, it seems to be an unsupported use case for EGLFS.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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