<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QSound doesn&#x27;t work outside of Qt Creator on Windows]]></title><description><![CDATA[<p dir="auto">I'm trying to use QSound in my Qt program. I'm trying to play a sound which is in the Qt resources. I use the following code:</p>
<pre><code>QSound::play(":/exemple.wav");
</code></pre>
<p dir="auto">When I run my program from Qt Creator, everything works well. But when I run my program on Windows from Windows explorer, it doesn't make any sound. When I run my program on Mac or Linux, even outside of Qt Creator, it works.</p>
<p dir="auto">I tried literally copying the content of all the subfolders of C:\Qt\5.10.1\msvc2015 into the executable's folder in case some DLLs or other files were missing, but it didn't help (I know that a lot of those files like the includes aren't necessary for the executable, but I still tried).</p>
<p dir="auto">I also tried to use files on the hard drive (using the absolute path in the program) instead of qrc resources, but it still didn't work.</p>
<p dir="auto">How to get QSound to work outside of Qt Creator?</p>
]]></description><link>https://forum.qt.io/topic/91338/qsound-doesn-t-work-outside-of-qt-creator-on-windows</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 08:29:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/91338.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jun 2018 16:01:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QSound doesn&#x27;t work outside of Qt Creator on Windows on Mon, 04 Jun 2018 16:39:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
Make sure you make a proper deployment folder<br />
You can use the tool<br />
<a href="http://doc.qt.io/qt-5/windows-deployment.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/windows-deployment.html</a></p>
<p dir="auto">also look here<br />
<a href="http://www.tripleboot.org/?p=138" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.tripleboot.org/?p=138</a></p>
<p dir="auto">the subfolders of  C:\Qt\5.10.1\msvc2015 might NOT reflect how the DLLS should be located.</p>
]]></description><link>https://forum.qt.io/post/461818</link><guid isPermaLink="true">https://forum.qt.io/post/461818</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Mon, 04 Jun 2018 16:39:09 GMT</pubDate></item></channel></rss>