Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. multimedia module
Forum Updated to NodeBB v4.3 + New Features

multimedia module

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 2 Posters 394 Views 2 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.
  • L Offline
    L Offline
    lorc
    wrote on last edited by
    #1

    Hello!

    I am trying to create a basic GUI for a project of mine in python. I need it to be able to play videos and provide some other basic functionality. However, I cannot seem to be able to use the multimedia module. I have checked the maintenance tool and it is installed. However, when I try to create or promote a widget to QVideoWidget the option is not there. None of the multimedia widgets are available either. I had some problems with my python as it was installed in a seperate virtual environment for my other project and as such had problems selecting a kit to use which I think may be the issue. I am probably just missing something simple as I have not used Qt before. Any help would be appreciated.

    Thank you.

    Pl45m4P 1 Reply Last reply
    0
    • L lorc

      Hello!

      I am trying to create a basic GUI for a project of mine in python. I need it to be able to play videos and provide some other basic functionality. However, I cannot seem to be able to use the multimedia module. I have checked the maintenance tool and it is installed. However, when I try to create or promote a widget to QVideoWidget the option is not there. None of the multimedia widgets are available either. I had some problems with my python as it was installed in a seperate virtual environment for my other project and as such had problems selecting a kit to use which I think may be the issue. I am probably just missing something simple as I have not used Qt before. Any help would be appreciated.

      Thank you.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      Hi and welcome,

      @lorc said in multimedia module:

      when I try to create or promote a widget to QVideoWidget the option is not there

      what option? You have to select your (in case of Python) *.py file where you've implemented your QVideoWidget subclass.
      And as "header" something like PyQt6.QtMultimediaWidgets...
      Are you using PySide6 or PyQt?

      Can you verify that the rest of your installation works properly?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      L 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        Hi and welcome,

        @lorc said in multimedia module:

        when I try to create or promote a widget to QVideoWidget the option is not there

        what option? You have to select your (in case of Python) *.py file where you've implemented your QVideoWidget subclass.
        And as "header" something like PyQt6.QtMultimediaWidgets...
        Are you using PySide6 or PyQt?

        Can you verify that the rest of your installation works properly?

        L Offline
        L Offline
        lorc
        wrote on last edited by
        #3

        @Pl45m4
        Yes the rest of my installation appears to be working. I am trying to use the design mode to implement the video widget. The project defaulted to using PySide6 I think as that's what is imported in widget.py. Do I need to manually impliment the video widget instead of using the design mode?

        Pl45m4P 1 Reply Last reply
        0
        • L lorc

          @Pl45m4
          Yes the rest of my installation appears to be working. I am trying to use the design mode to implement the video widget. The project defaulted to using PySide6 I think as that's what is imported in widget.py. Do I need to manually impliment the video widget instead of using the design mode?

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @lorc said in multimedia module:

          Do I need to manually impliment the video widget instead of using the design mode?

          Depends on if you want to use the default QVideoWidget or a modified implementation.
          For the default one try:
          (not tested as I'm not using Qt for Python right now)

          class: QVideoWidget
          header: PySide6.QtMultimediaWidgets

          else you have to place you classname and Py module name (without the `*.py extension) there


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          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