Hi Pritpal,
many thanks for your answer
oUrl := QUrl():fromLocalFile( "device:\somePath\file.ext" ) works.
While I'm swimming in the sea, I found these problems:
1) QFileInfo
LOCAL oFile := QFile( "device:\somePath\file.ext" )
HB_TRACE( HB_TR_ALWAYS, "A(1) >" + oFile:fileName() ) OK, it returns the right value
HB_TRACE( HB_TR_ALWAYS, "A(2) >" + hb_ValToExp( oFile:exists() ) ) OK, it returns .T. because file exists
1.a) oFile := QFileInfo( "device:\somePath\file.ext" )
HB_TRACE( HB_TR_ALWAYS, "A(1) >" + oFile:filePath() ) wrong it returns an empty string
HB_TRACE( HB_TR_ALWAYS, "A(2) >" + hb_ValToExp( oFile:exists() ) ) wrong it returns .F.
1.b) oFile := QFileInfo( QFile( "device:\somePath\file.ext" ) )
HB_TRACE( HB_TR_ALWAYS, "A(1) >" + oFile:filePath() ) wrong it returns an empty string
HB_TRACE( HB_TR_ALWAYS, "A(2) >" + hb_ValToExp( oFile:exists() ) ) wrong it returns .F.
2) QSoundEffect (nb. I'm using Qt 5.3.2, I see many if QT_VERSION >= into QsoundEffect.cpp )
2.a) :IsLoaded() return .F., but I can hear the music; I have used this method before :play() not after
2.b) :supportedMimeTypes() is not coded into QsoudEffect.qth; can be usefull? I think yes: in this way (probably) we can know if a "file" can be played.
BR
Luigi