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. QVideoWidget running in worker thread
QtWS25 Last Chance

QVideoWidget running in worker thread

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qvideowidgetqt5qthread
6 Posts 3 Posters 2.1k 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.
  • L Offline
    L Offline
    Lazar Urosevic
    wrote on 21 Jan 2016, 13:44 last edited by Lazar Urosevic
    #1

    I am a little bit stucked with idea to add a QVideoWidget to QWidget which is located in my MainWindow UI. I am very interested to know how to move VideoWidget to worker thread which will change the content of QWidget in my MainWindow UI by using signals and slots. I am aware that that sending a big data over signals and slots is not good practice, but I am interested to hear your advice on how to implement this idea? I will be playing video based on this example.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 21 Jan 2016, 14:16 last edited by raven-worx
      #2

      every QWidget MUST reside in the GUI-thread (= main thread)
      No way around

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lazar Urosevic
        wrote on 21 Jan 2016, 14:32 last edited by
        #3

        @raven-worx But what will happen if I have two videowidgets and I play them in the same time, one will be blocked, am I right?

        R 1 Reply Last reply 21 Jan 2016, 14:34
        0
        • L Lazar Urosevic
          21 Jan 2016, 14:32

          @raven-worx But what will happen if I have two videowidgets and I play them in the same time, one will be blocked, am I right?

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 21 Jan 2016, 14:34 last edited by
          #4

          @Lazar-Urosevic
          what makes you think that? Then also the GUI would be blocked when only 1 video widget is used?
          But it is a matter of 2 mins to give it a try ;)

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Lazar Urosevic
            wrote on 21 Jan 2016, 14:39 last edited by
            #5

            So you say that I can have two QWidgets in my MainWindow GUI (main thread) and inside them run QVideoWidget example at the same time?

            J 1 Reply Last reply 22 Jan 2016, 06:17
            0
            • L Lazar Urosevic
              21 Jan 2016, 14:39

              So you say that I can have two QWidgets in my MainWindow GUI (main thread) and inside them run QVideoWidget example at the same time?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 22 Jan 2016, 06:17 last edited by
              #6

              @Lazar-Urosevic Yes, you can have two QVideoWidgets at the same time. Why should one of them block? And why not just try it?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              21 Jan 2016, 13:44

              • Login

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