PDA

View Full Version : QListWidget line break of content Cell!! how to do this !



joaovictor
24th November 2017, 18:08
I want to use QListWidget to display my content. But some of the content is quite long and I want to make the text continue on a second LINE in the same cell, of course, instead of showing a horizontal scrollbar.

I use Qt Creator and I can't seem to find any options in the design view.

12691


PLEASE SOMEONE HELP ME!

d_stranz
24th November 2017, 19:36
I do not know if QListWidget supports it, but you could try creating your contents with Rich Text Format (https://doc.qt.io/qt-5/richtext-html-subset.html), a subset of HTML, and insert your own line breaks.