PDA

View Full Version : QMediaPlayer - Reorganising a QListWidget after calling shuffle()



Evilpaperclip
13th December 2013, 01:31
Good evening all,
Let me first mention that I have only experienced Qt for a month or two, and haven't ever touched C++ before that, so any code I paste up will most likely be riddled with faults!

I've set myself the task of creating a media player and am nearing completion, bugfixing basically. I found the slot QMediaPlaylist::Shuffle() and fancied using it. The media shuffles perfectly fine, however, I can't work out how to update the ListWidget to show the newly shuffled list.

Any help in this matter would be greatly appreciated,

Thanks in advance,

Alex

Added after 1 48 minutes:

I've also just picked up a "handleSessionEvent: serious error = -2147467262" error whilst trying to play .avi and .mkv files. Is there anyway to add the codecs into my program?