1

I have a QListWidget with a fixed width. Consequently, when I add items, a horizontal scrollbar appears to scroll along the row. But I would like to have a new row created below the current row so that no horizontal scrollabr appears but only vertical scrollbar if needed. I found a post on another forum where the person says that he has by default what I want, and wants a single row, but by default I have a single row.

So how to make QListWidget create several rows when its width is fixed? I tried with isWrapping= true / false, flow=LeftToRight / TopToBottom but no change. And I am in iconMode. I also found some solutions which proposed to use QTableWidget but I am sure it's possible to do it with QListWidget.

4

0 回答 0