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. Qt.multimedia 1.0
Qt 6.11 is out! See what's new in the release blog

Qt.multimedia 1.0

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 3.0k 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.
  • M Offline
    M Offline
    Merinas
    wrote on last edited by
    #1

    Hi,
    I've been trying to play sound but Qt.multimedia 1.0 is not installed by default with Qt 4.7.2 and I would like to know where I can found it to build it for my computer. I would do that : @ import Qt 4.7
    import Qt.multimedia 1.0

    Text {
    text: "Click Me!";
    font.pointSize: 24;
    width: 150; height: 50;

     SoundEffect {
         id: playSound
         source: "soundeffect.wav"
     }
     MouseArea {
         id: playArea
         anchors.fill: parent
         onPressed: { playSound.play() }
     }
    

    }@

    Thanks

    1 Reply Last reply
    0
    • P Offline
      P Offline
      parancibia
      wrote on last edited by
      #2

      You need install "Qt Mobility":http://qt.nokia.com/products/qt-addons/mobility , check the "documentation":http://doc.qt.nokia.com/qtmobility-1.1/installation.html and remember add

      @ CONFIG += mobility
      MOBILITY = multimedia@

      to your .pro file

      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