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. Faster alternative for grabWindow?

Faster alternative for grabWindow?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.0k 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

    I ported my app from QtQuick 1.1 to QtQuick 2.1.
    It has a build in 'remote desktop' feature. For this I need a screen capture of the complete window relatively fast.
    In version 1.1 I used the render() on the GLWidget and was fast enough. However this does not exist in a QtQuick 2.1 QQuickView application, so resorted to the grabWindow method. Which works but is way too slow for my application, just like the "grabWindow":http://qt-project.org/doc/qt-5.0/qtquick/qquickwindow.html#grabWindow documentation warns about.

    So I'm looking for a faster way to get a complete screenshot into a QImage of the QQuickView content.

    I tried using the solution using QOpenGLFramebufferObject as described in "this":http://stackoverflow.com/questions/17146747/capture-qml-drawing-buffer-without-displaying.
    This gives screenshot images fast enough (10times faster than grabWindow), but this post's solution renders to an image and no longer to the screen.
    Also the documentation of the QQuickWindow::afterRendering() mentions this signal can be used to do 'screen scrapping' but I have no clue how to do that. I guess accessing the GLContext and somehow rendering it to an image/texture or something.

    Somebody any idea?

    1 Reply Last reply
    1

    • Login

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