<?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[Creating a simple shuffle play button]]></title><description><![CDATA[<p dir="auto">I've been wanting this feature for a long time, so I'm developing it myself. I have never worked with qt before so require a little help.</p>
<p dir="auto">I would like to have a button that starts playing the playlist after shuffling (instead of having to manually click on a random track from the playlist, it's just inconvenient). This button would be positioned between the "Clear Playlist" and "Undo" buttons.</p>
<p dir="auto">I probably would have to create a new action in mainwindow.ui and add it to <code>ui_-&gt;playlist-&gt;SetActions</code>. And then create a corresponding function <code>PlaylistShufflePlay()</code> for it where shuffle (I couldn't find a function for this) is called before calling <code>PlaylistPlay()</code>.</p>
<p dir="auto">Can somebody point me in the right direction on how this should be implemented?</p>
]]></description><link>https://forum.strawberrymusicplayer.org/topic/1486/creating-a-simple-shuffle-play-button</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 07:58:59 GMT</lastBuildDate><atom:link href="https://forum.strawberrymusicplayer.org/topic/1486.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Apr 2024 15:44:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creating a simple shuffle play button on Wed, 05 Jun 2024 20:42:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2405">@user1234</a> id love a function like this, it feels ridiculous that this amazing full feature music player cant easily do something as simple as properly shuffle playlists.</p>
<p dir="auto">for that matter, neither the general shuffle function nor the shuffle playlist function do anything for me in that regard. i am simply unable to make the player choose a random playback order for any given playlist. it will always follow the album order, even if i manually pick a random track to start with...</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3692</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3692</guid><dc:creator><![CDATA[mukmuk]]></dc:creator><pubDate>Wed, 05 Jun 2024 20:42:16 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a simple shuffle play button on Sat, 20 Apr 2024 17:59:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/1">@jonas</a></p>
<blockquote>
<p dir="auto">I don't understand what you want to do here.</p>
</blockquote>
<p dir="auto">I'll try to explain again:</p>
<ul>
<li>So, let's say I'm playing a track from playlist A</li>
<li>Now, I would like to start playing a random track from playlist B</li>
</ul>
<p dir="auto">To do this, I would have to</p>
<ul>
<li>Click on playlist B</li>
<li>Select a random track manually from playlist B (or ctrl+h and then select a track)</li>
<li>Double click on the track to start playing it</li>
</ul>
<blockquote>
<p dir="auto">Why can't you just press play?</p>
</blockquote>
<ul>
<li>The play button controls the currently playing track (from playlist A, in my example)</li>
<li>So, pressing play just plays/pauses the current playing track</li>
</ul>
<p dir="auto"><strong>Solution</strong></p>
<ul>
<li>A button that shuffles the current selected playlist (not the one that is currently playing) and then plays a track from it.</li>
</ul>
<p dir="auto">Behavior when using this modified feature</p>
<ul>
<li>I am playing a track from playlist A</li>
<li>I press play/pause button: the current track plays/pauses</li>
<li>I click on playlist B</li>
<li>There is a "Shuffle Play" button between the "Clear Playlist" and "Undo" buttons. I click on "Shuffle Play"</li>
<li>The playlist B is shuffled and a random track from the playlist B starts playing</li>
</ul>
<p dir="auto">Hope this makes it clear. I'm pretty sure many people would like to have such a feature, it is pretty convenient this way.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3558</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3558</guid><dc:creator><![CDATA[user1234]]></dc:creator><pubDate>Sat, 20 Apr 2024 17:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a simple shuffle play button on Fri, 19 Apr 2024 12:11:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2405">@user1234</a><br />
I don't understand what you want to do here. Why can't you just press play?<br />
But you would need to do this in Mainwindow, Player and Playlist classes.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3556</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3556</guid><dc:creator><![CDATA[jonas]]></dc:creator><pubDate>Fri, 19 Apr 2024 12:11:25 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a simple shuffle play button on Sat, 13 Apr 2024 08:37:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/1">@jonas</a> can you help me?</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3530</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3530</guid><dc:creator><![CDATA[user1234]]></dc:creator><pubDate>Sat, 13 Apr 2024 08:37:58 GMT</pubDate></item></channel></rss>