Results 1 to 4 of 4

Thread: QDir::entryList() on linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QDir::entryList() on linux

    Hello,

    This was discussed before and it was said it was a problem with my ubuntu, not related to Qt.

    But... my mp3 player on ubuntu, audacious, can read a file with a name like 'Clannad Crann Ull 03 Cruscin Lán.mp3'.

    It displays a funny question mark, but it recognizes the file and plays it.

    In a console, with 'ls <map>', the file gets displayed.

    But such a file does not show up when I do an QDir::entryList() on that map.

    Qt Code:
    1. QDir songmap = QDir("/home/jean/serverd/Mp3/Clannad/", "*.mp3", QDir::Name, QDir::Files);
    2. QStringList songnames = songmap.entryList();
    3. for (int i = 0; i < songnames.count(); i++)
    4. qDebug() << songnames.at(i);
    To copy to clipboard, switch view to plain text mode 

    Output snippet:
    "Clannad Crann Ull 02 The Last Rose of Summer.mp3"
    "Clannad Crann Ull 04 Bacach Shile Andai.mp3"

    Song 03 from that cd is missing in the list.

    Suggestions or workarounds welcome.
    Thanks.
    Last edited by JeanC; 3rd March 2008 at 10:48.

Similar Threads

  1. qdir and entrylist
    By mattia in forum Newbie
    Replies: 1
    Last Post: 28th November 2007, 10:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.