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. Android 5 fail to convet QQuickItem to QImage
Forum Updated to NodeBB v4.3 + New Features

Android 5 fail to convet QQuickItem to QImage

Scheduled Pinned Locked Moved Mobile and Embedded
android 5qquickitemgrabrqimageqquickitemscreen capture
1 Posts 1 Posters 1.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.
  • Z Offline
    Z Offline
    Zondar
    wrote on last edited by Zondar
    #1

    Hi,

    I want to convert QQuickItem(Videooutput) to QImage, it works on Android 4.4, but when I tried it on Android 5(Samsung Galaxy s6), Videooutput works, but when I want to screen it prints "W/GLConsumer( 7947): [unnamed-7947-0] bindTextureImage: clearing GL error: 0x502"

    VideoOutput {
    id: videoOutput

        width: 400
        height: 400
        source: camera
        focus: true
        autoOrientation: true
    
        MouseArea {
            anchors.fill: parent
            onClicked: {
                imageHandler.makeScreenSync(videoOutput)
            }
        }
    }
    
    ImageHandler {
        id: imageHandler
    }
    

    //--------------------------------------------------------------------------------

    QImage ImageHandler::makeScreenSync(QQuickItem *videoOutput)
    {
    QImage iresult = videoOutput->window()->grabWindow();
    return iresult;
    }

    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