Answer the question
In order to leave comments, you need to log in
How to get text from QListWidget?
Just explain please. I didn’t look anywhere - everywhere they write methods with "listWidget.selectedItems" or "currentItem", and then they translate it all into text using the variable into which they wrote the value and ".text()", but it doesn't work for me! Or is it something I don't understand.
Answer the question
In order to leave comments, you need to log in
QListWidget contains QListWidgetItem , which already has text (if no widgets have been added)
To get the text, you need:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question