Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. PlaylistItem not working with properties
Forum Updated to NodeBB v4.3 + New Features

PlaylistItem not working with properties

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 130 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.
  • Marko StankeM Offline
    Marko StankeM Offline
    Marko Stanke
    wrote on last edited by
    #1

    This works:

    Audio {
            id: player;
            playlist: Playlist {
                id: playlist
                PlaylistItem {
                    source: "...fullpath/Media/Audio/audio1.mp3" }
            }
        }
    

    This doesn't work:

    Audio {
            id: player;
            playlist: Playlist {
                id: playlist
                PlaylistItem {
                    property url test: "...fullpath/Media/Audio/audio1.mp3"
                    source: test  }
            }
        }
    

    I really don't understand why. Could somebody explain this behaviour and how to fix this problem?

    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