How to get text of QListWidget?
Solved
Qt for Python
-
Hi all!
I have a QListWidget, and connected its currentRowChanged Signal to my function. So far so good.
Probelm is, i cannot figure out how to read the value of the selected row. (the string, not the row index..)
I've been looking everywhere and all samples I found assume that there can be multiple rows selected. In my case i have set it to single selection and there will only be a single selected row.
How can I read the value?
self.lwImages.currentItem.toString did not work...
any help appreciated.
Thank you
-
@Igor86 Isn't https://doc.qt.io/qt-5/qlistwidgetitem.html#text what you need?