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

EGLFS problem, QGraphicsView using QGLWidget as viewport

Scheduled Pinned Locked Moved Unsolved General and Desktop
qglwidgetqgraphicsvieweglfs
2 Posts 2 Posters 1.8k Views
  • 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 4 May 2016, 07:56 last edited by luca 5 Apr 2016, 09:32
    #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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 May 2016, 19:20 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

      2/2

      6 May 2016, 19:20

      • Login

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