[Solved] .mp3 with Qt
-
-
[quote author="spode" date="1308212238"][code]not installed
import QtMultimediaKit 1.1
^ [/code] this is my error. however, .wav are too heavy, so i am triing for another format's support[/quote]MP3 or Ogg is also be supportted.
The not installed error means you didn't install(make&make install) the corresponding plugin/lib. If you target in Windows/Linux/Mac, you need compile the Qt Mobility by yourself to enable using it.
-
Make sure your relative path is relative to "QDir::current()":http://doc.qt.nokia.com/4.7/qdir.html#current is. If it isn't you can always use
@QDir(QCoreApplication::applicationDirPath ()).absoulteFilePath("/path/")@ -
i have this snippet:
@ QString s = QDir::current().absolutePath().append("/qml/fileTrenner2/compleanno.mp3");
QUrl mp3Url = QUrl::fromLocalFile(s);
QDesktopServices::openUrl(mp3Url); @
i want that the new window opens itself in minimized mode...or i want to move it.
how to do it?