Volume functionality in qml for music player



  • Hi all,
    I am developing a music player in qml, using Qt ver 5.6. i want to know how to give the volume functionality in QML, AFAIK there is a new method introduced in the latest version of Qt i.e 5.8 (property real volume: QtMultimedia.convertVolume(...) ) which can only be used with QtMultimedia 5.4 or 5.5, but i am using QtMultimedia 5.0 or 5.1. Can anyone guide me how to do this? Thanks


  • Lifetime Qt Champion

    Hi,

    If you want to use a feature from a newer version of library while using an older one, then your only choice is to back port it.



  • @SGaist Thanks for the reply,
    Back porting, how can i do that?


  • Lifetime Qt Champion

    It depends but usually it involves a lot of sweat.

    Back porting means that you have to find the differences between your version of the code and the one you would like to use and then apply these changes. And you have to take into account that it might span more than just the class you want to get the improvement for.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.