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. The tutorial code can't work.
Forum Updated to NodeBB v4.3 + New Features

The tutorial code can't work.

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 3 Posters 390 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
    shadow3d
    wrote on last edited by
    #1

    Hi there,

    I am new in qt for Python and I am following the tutorials.
    Everything was working well until I went to Using .qrc Files (pyside6-rcc).
    The code is not completed in this tutorial, and I tried to combine it with the simple stub.
    But it doesn't work, the terminal complained ImportError: cannot import name 'QMediaPlaylist' from 'PySide6.QtMultimedia' with the following code.

    from PySide6.QtMultimedia import QMediaPlayer, QMediaPlaylist
    

    I am working with pyside6 in version 6.7.2.
    Could anyone give me the complete code of this tutorial for reference?

    BTW,

    1. I can find the examples code for Qt for Python in HERE, but I can't find where is the tutorial code.
      Does anyone know where I can have it?
    2. How to design this mainwindow by pyside-designer? Could you give me the mainwindow.ui file for reference?

    Thanks for your help!

    jsulmJ 1 Reply Last reply
    0
    • S shadow3d

      Hi there,

      I am new in qt for Python and I am following the tutorials.
      Everything was working well until I went to Using .qrc Files (pyside6-rcc).
      The code is not completed in this tutorial, and I tried to combine it with the simple stub.
      But it doesn't work, the terminal complained ImportError: cannot import name 'QMediaPlaylist' from 'PySide6.QtMultimedia' with the following code.

      from PySide6.QtMultimedia import QMediaPlayer, QMediaPlaylist
      

      I am working with pyside6 in version 6.7.2.
      Could anyone give me the complete code of this tutorial for reference?

      BTW,

      1. I can find the examples code for Qt for Python in HERE, but I can't find where is the tutorial code.
        Does anyone know where I can have it?
      2. How to design this mainwindow by pyside-designer? Could you give me the mainwindow.ui file for reference?

      Thanks for your help!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @shadow3d said in The tutorial code can't work.:

      QMediaPlaylist

      It was removed from Qt6, see https://doc.qt.io/qt-6/qtmultimedia-changes-qt6.html

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

      1 Reply Last reply
      1
      • F Offline
        F Offline
        friedemannkleint
        wrote on last edited by
        #3

        PYSIDE-2828) for reference.

        1 Reply Last reply
        2
        • CristianMaureiraC CristianMaureira has marked this topic as solved on

        • Login

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