I
I
Ilya2015-04-24 08:36:10
Qt
Ilya, 2015-04-24 08:36:10

How to get list value by its number in qt5?

Hello. There is a certain list from QListWidget. I get the selected record number like this: self.ui.listFirmware.currentRow()
Question. How can I get the value from the list by this number? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-04-24
@ArtMavir

The current value can be obtained like this:
By index like this, item(index):
self.ui.listFirmware.item(1).text()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question