Problems with New Line in QT3 Table Headers
- From: Uwe Bosse <wersonst@xxxxxx>
- Date: Tue, 04 Dec 2007 18:16:45 +0100
I use a QTable object and want to set multiline horizontal headers, such as
a second line
So, I use the following code:
QHeader * header=myTable->horizontalHeader();
header->setLabel(0,QString("a line, \n a second line"));
QMessageBox::information(0,"Your Label is...",header->label(0));
The result is: the Label of my table is:
a line, a second line
(all in _one_ line), whereas the MessageBox shows me:
a second line.
I really want multiple lines within the header of my table. So what can I
Thanks for help, Uwe.