c++ - QListWidget

Posted by user1889459 on Stack Overflow See other posts from Stack Overflow or by user1889459
Published on 2012-12-09T17:02:07Z Indexed on 2012/12/09 17:03 UTC
Read the original article Hit count: 177

Filed under:
|
|

I created a working QListWidget with multiple items, but I can't figure out how to make it user-friendly. It looks like this:

1000
1001
1002
...

But I want it to look like this, where firt 4 numbers have a meaning, while all the rest info is just for user.

1000 Name LastName and some other helpful info
1001 tom jeff smallville
1002 ming vase, 1992
...

For example, this line

fotoId = ui->devices->currentItem()->text().toInt();

should give me same result in both cases.

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt