Playlistwidget
Qt Widgets
Score 52%
Description:

A widget for playlists.
It sorts all tracks into albums, and automaticly drops deleted files. It also changes all shown tags if they got edited through another program. It depends on Qt4 and taglib.

It is a part of my program k-yamo, and I decided to give it away, so other projects can use it also.

The new version of K-Yamo, wich uses this widget, is out, so if you want to check how this widget works in total, you can take a peek in the sources of K-Yamo.

Post a comment,if you like or dislike it.
Last changelog:

7 years ago

0.3 Cleaned out the code, so most of the k-yamo-specific-stuff is not in there anymore.
Sorted out the sourcecode into folders and added all pictures this time.
Improved the order in the constructors, so there are no more warnings on compile.
Added a Delegate to get artist and album on a seperate line.
Completed the api-documentation.

0.2 Only made a better example-app, that wires a bit more.
Also the icon is set this time, so albums without cover in tags get shown right.

masterfamp

6 years ago

Hi,

I'm playing with your widget, but does not run :S. I using the 1.6.3 version of taglib, however QTcreator say to me: no matching function for call to 'TagLib::MPG::File::File(QByteArray)' on line 69 of taglibinterface.cpp file. can you help me to find one solution??. Thanks in advance.

Report

C

roweigert

6 years ago

You need to tell Qt, that you need external includes.
This is done with the following lines in your pro-file:
INCLUDEPATH += . \
/usr/include/taglib/
LIBS += -L/usr/lib \
-ltag

Report

masterfamp

6 years ago

Hi and thank for your response.

I'm running the widget in windows and i try to use the taglib version 1.5 and 1.6.3, however i have the same problem with the creation of files (i think).

in this lines in taglibinterface.cpp:

(69)
TagLib::MPEG::File filetoread(QFile::encodeName ( this->filename ));

(138)
TagLib::FileRef filetoread(QFile::encodeName ( this->filename ));

(159)
TagLib::Ogg::Vorbis::File filetosave(QFile::encodeName(this->filename));

(187)
TagLib::MPEG::File filetosave(QFile::encodeName(this->filename));

when i change "this->filname" like this example:

TagLib::FileName file_name(this->filename.toAscii());
TagLib::MPEG::File filetoread( file_name);

then the program run, however when you drag a file nothing happen. what can i do?? are you using a different version of taglib????. THANKS IN ADVANCE

Report

masterfamp

6 years ago

Hi and thank for your response.

I'm running the widget in windows and i try to use the taglib version 1.5 and 1.6.3, however i have the same problem with the creation of files (i think).

in this lines in taglibinterface.cpp:

(69)
TagLib::MPEG::File filetoread(QFile::encodeName ( this->filename ));

(138)
TagLib::FileRef filetoread(QFile::encodeName ( this->filename ));

(159)
TagLib::Ogg::Vorbis::File filetosave(QFile::encodeName(this->filename));

(187)
TagLib::MPEG::File filetosave(QFile::encodeName(this->filename));

when i change "this->filname" like this example:

TagLib::FileName file_name(this->filename.toAscii());
TagLib::MPEG::File filetoread( file_name);

then the program run, however when you drag a file nothing happen. what can i do?? are you using a different version of taglib????. THANKS IN ADVANCE

Report

masterfamp

6 years ago

Hi and thank for your response.

I'm running the widget in windows and i try to use the taglib version 1.5 and 1.6.3, however i have the same problem with the creation of files (i think).

in this lines in taglibinterface.cpp:

(69)
TagLib::MPEG::File filetoread(QFile::encodeName ( this->filename ));

(138)
TagLib::FileRef filetoread(QFile::encodeName ( this->filename ));

(159)
TagLib::Ogg::Vorbis::File filetosave(QFile::encodeName(this->filename));

(187)
TagLib::MPEG::File filetosave(QFile::encodeName(this->filename));

when i change "this->filname" like this example:

TagLib::FileName file_name(this->filename.toAscii());
TagLib::MPEG::File filetoread( file_name);

then the program run, however when you drag a file nothing happen. what can i do?? are you using a different version of taglib????. THANKS IN ADVANCE

Report

C

roweigert

6 years ago

Take a look into the function getallfiles().
This one is called by dropEvent().
Maybe you need to set toAscii to all th filenames in windows.
Try to create debugoutput in both functions, to see what happens to your filenames.

I have an utf8-linux-system.
This works best for me. (Cause I can see german Umlauts also)

Report

masterfamp

6 years ago

i fixed, the problem was in the paths because for some reason the string always start with a slash (like "/c:/file.mp3") i just delete this slash and then the program run. Thanks for your help!!

Report

C

roweigert

6 years ago

Ok,fine.

I never thought about windows-users. It is simply a part of my programm k-yamo that I ramped out, cause it worked well. (At least for me ;-))

But I am really pleased, that other maybe use some of my (weired) code.

Report

7 years ago

0.3 Cleaned out the code, so most of the k-yamo-specific-stuff is not in there anymore.
Sorted out the sourcecode into folders and added all pictures this time.
Improved the order in the constructors, so there are no more warnings on compile.
Added a Delegate to get artist and album on a seperate line.
Completed the api-documentation.

0.2 Only made a better example-app, that wires a bit more.
Also the icon is set this time, so albums without cover in tags get shown right.

product-maker cydside Feb 04 2012

product-maker 7 7

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.3
updated Nov 17 2009
added Oct 25 2009
downloads today
0
page views today 0