[Solved]QListWidgetItem text should be of two lines only.
General and Desktop
3
Posts
2
Posters
1.0k
Views
1
Watching
-
Hi,
I am working with QListWidget in icon mode and adding QListWidgetItem dynalically to the list.
I have a problem that I was to restrict the text at the bottom of QListWidgetItem to two lines. So that it should look like the one below:Text line 1
text line 234......In second line I want to display description which could be quite long but it should end up with '...' instead going to next line.
Any help is appreciated.Maahi
-
Hi,
A QStyledItemDelegate sounds the way to go