QListWidget::text() problem
-
Hello, I've got music player, QListWidget as Playlist viewer and "Add" button which adds elements to my Playlist.
http://pastebin.com/6Zg5yNke
line 12: my program crash on QListWidget::text()inline QString text() const { return data(Qt::DisplayRole).toString(); } // <-
What am I doing wrong?
-
Hi and welcome to devnet,
Are you sure that item is valid ?