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. Copying contents of window from one to another?
QtWS25 Last Chance

Copying contents of window from one to another?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmlqtquickcopyframebufferqopenglframebuf
2 Posts 2 Posters 654 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.
  • S Offline
    S Offline
    SourceSlayer
    wrote on 13 Dec 2020, 04:19 last edited by
    #1

    Hello, I have a QQuickItem playing a video in a window that I would like to crop out two portions of the video and play them in their own windows.
    So far I have though about

    • ShaderEffectSource - Problem is that it only copies textures from the same window, which will not be shown
    • QScreen::grabWindow - I'd rather the window not be visible and I'd imagine this would not be too CPU efficient, plus it would take up too much real estate since the window couldn't be hidden
    • QQuickFrameBufferObject::toImage - Would be far too inefficient for what I'm thinking probably, and I'm not sure I'd know the best way to implement.
    • QOpenGLFrameBufferObject::blitFramebuffer - Not too sure I understand its model with the threading, especially in regards to how to grab the stuff to blit if it shouldn't be cached with a pointer, just in general, I'm not too sure about it, I don't know enough about OpenGL as I'd like to so it really doesn't help.

    Anyone have any better ideas?

    O 1 Reply Last reply 20 Feb 2022, 09:30
    0
    • S SourceSlayer
      13 Dec 2020, 04:19

      Hello, I have a QQuickItem playing a video in a window that I would like to crop out two portions of the video and play them in their own windows.
      So far I have though about

      • ShaderEffectSource - Problem is that it only copies textures from the same window, which will not be shown
      • QScreen::grabWindow - I'd rather the window not be visible and I'd imagine this would not be too CPU efficient, plus it would take up too much real estate since the window couldn't be hidden
      • QQuickFrameBufferObject::toImage - Would be far too inefficient for what I'm thinking probably, and I'm not sure I'd know the best way to implement.
      • QOpenGLFrameBufferObject::blitFramebuffer - Not too sure I understand its model with the threading, especially in regards to how to grab the stuff to blit if it shouldn't be cached with a pointer, just in general, I'm not too sure about it, I don't know enough about OpenGL as I'd like to so it really doesn't help.

      Anyone have any better ideas?

      O Offline
      O Offline
      oniongarlic
      wrote on 20 Feb 2022, 09:30 last edited by
      #2

      @SourceSlayer Did you figure out some solution for this ? I'm in need to the same thing.

      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