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. QVideoWidget does not repaint
Forum Updated to NodeBB v4.3 + New Features

QVideoWidget does not repaint

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 727 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.
  • H Offline
    H Offline
    Harry123
    wrote on last edited by
    #1

    I am using a QVideoWidget with QMediaPlayer, both are parented to a top-level QWidget.
    The problems I am encountering are :

    1. Loading a video into QMediaPlayer does not display the first frame.
    2. While the video is displayed when doing play() + pause() or setPosition(), it disappears again immediately when :
      a. changing the focus
      b. doing QVideoWidget::hide() and then show()

    I have tried when a paint-event arrives to use QVideoWidget::update(), but this only causes an infinite loop of refreshes. Using QVideoWidget::repaint() during the paint-event sometimes works and sometimes randomly crashes.

    Does anyone know how to reliably make QVideoWidget display its last frame and keep on displaying it?

    M 1 Reply Last reply
    0
    • H Harry123

      I am using a QVideoWidget with QMediaPlayer, both are parented to a top-level QWidget.
      The problems I am encountering are :

      1. Loading a video into QMediaPlayer does not display the first frame.
      2. While the video is displayed when doing play() + pause() or setPosition(), it disappears again immediately when :
        a. changing the focus
        b. doing QVideoWidget::hide() and then show()

      I have tried when a paint-event arrives to use QVideoWidget::update(), but this only causes an infinite loop of refreshes. Using QVideoWidget::repaint() during the paint-event sometimes works and sometimes randomly crashes.

      Does anyone know how to reliably make QVideoWidget display its last frame and keep on displaying it?

      M Offline
      M Offline
      mehmety888
      wrote on last edited by
      #2

      @Harry123 I have the same bug. Have you find any solution since your post ?

      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