Problems with New Line in QT3 Table Headers
- From: Uwe Bosse <wersonst@xxxxxx>
- Date: Tue, 04 Dec 2007 18:16:45 +0100
Hello,
I use a QTable object and want to set multiline horizontal headers, such as
a line,
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 line
a second line.
I really want multiple lines within the header of my table. So what can I
do?
Thanks for help, Uwe.
.
- Prev by Date: Re: consume a web service on a windows server
- Next by Date: Infinite loop in select() calls
- Previous by thread: consume a web service on a windows server
- Next by thread: Infinite loop in select() calls
- Index(es):