You are not logged in.

1

Wednesday, February 18th 2004, 2:53pm

Multiline QListViewItems without linebreaks

Hello,

I would like to have a QListViewItem that shows its text in multiple lines. At first, I tried to set multiLinesEnabled(), but this unfortunately only works if there are linebreaks inside the text (which I don't have by default). It would be very convenient, if the word wrapping would be done automatically, so on every ResizeEvent as well. Does anybody have an idea how to do this?

Thanx in advance,
syntaxking.

2

Wednesday, February 18th 2004, 4:59pm

Line size

One solution to the problem is to determine the width of the column and add a space within the text at that point. The text would therefore word wrap, even when resized.
Note you are not changing the value just what is displayed, maybe setting up a temp variable to hold the choped text.
Gizard
QString sig = "Regit, a complete register solution for schools, colleges and universities";
http://regit.sourceforge.net
QString keywords = "register, timetable, regit, sourceforge, schools, colleges"

3

Wednesday, February 18th 2004, 5:06pm

News Letter

Also seeming that you are on the subject, the quaterly news letter has an article on improving the look ofthe lists
Improving the List
QString sig = "Regit, a complete register solution for schools, colleges and universities";
http://regit.sourceforge.net
QString keywords = "register, timetable, regit, sourceforge, schools, colleges"