Hi guys, I have a problem with QFileInfo on QListWidgetItem. In example in QListWidgetItem is item "new.txt". Is there any way how to get an absolute path of it?

sure I have this code, but absoluteFilePath returns QDir.currentPath() because it is empty
QFileInfo finfo(listWidget->item(i)->text());
fi.absoluteFilePath();

One way is to save absolute paths to List, but it is not so much pretty
thank you for opinions