Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick 2.0, plugins, and OpenGL rendering.

QtQuick 2.0, plugins, and OpenGL rendering.

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 967 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.
  • Q Offline
    Q Offline
    Qurx
    wrote on last edited by
    #1

    Hello all,

    I'm in the process of porting a quite big application from Qt 4.8.4 to Qt 5.1.1. This application consists of a front end in QML and a lot of plugins in C++. Among those plugins, one is doing OpenGL rendering in a shader.
    With Qt 4, we used the qmlviewer to run the application (with the -opengl switch), plugins were loaded and the OpenGL was rendered, all fine and dandy.
    Now with Qt 5, we tried the same scheme with qmlscene but it won't work anymore. It appears we don't have a (valid) opengl context in our plugins, that's why the rendering fails.
    Any hints on what we can do? The qmlscene doesn't have the -opengl switch as qmlviewer does, which tends to make me think we are doing it thing the wrong way (tm).

    Thanks in advance!

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qurx
      wrote on last edited by
      #2

      Sorry there is a typo here :
      "one is doing OpenGL rendering in a shader."

      s/shader/FBO

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sreich
        wrote on last edited by
        #3

        qmlscene is gl implicitly by default I believe, since it uses the scenegraph of qtquick2.

        without seeing any code, i can just say look at the qt5 qtquick examples, like "rendering in an fbo", "rendering under qml", etc.

        Software Developer for KDE

        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