Qt Code:
  1. class TagAudio
  2. {
  3. private:
  4.  
  5.  
  6.  
  7. protected:
  8.  
  9. public:
  10.  
  11. QString TagNombre;
  12. TagAudio();
  13. void Iniciar(const char *file );
  14.  
  15.  
  16.  
  17.  
  18. };
  19.  
  20.  
  21. TagAudio::TagAudio()
  22. {
  23.  
  24.  
  25. }
  26.  
  27.  
  28.  
  29. void TagAudio::Iniciar(const char *file){
  30.  
  31. TagLib::FileRef tagFile(file);
  32. if(!tagFile.isNull()){
  33.  
  34.  
  35. QString TagTmp;
  36. TagTmp = TStringToQString(tagFile.tag()->album()); //yes
  37. TagNombre = TStringToQString(tagFile.tag()->album()); //no ?
  38.  
  39.  
  40.  
  41. }
  42.  
  43.  
  44.  
  45.  
  46. }
To copy to clipboard, switch view to plain text mode 

For the second assignment is not possible TagNombre
thanks