jiapei100
7th February 2013, 04:39
Hi, all:
I'm trying to write a single about() function, with only a QMessageBox as follows:
QMessageBox::information(this,
"My System",
"line 111111111111111111111111111111 \n"
"line 222222222222222222 \n"
"line 33333333333333333333333333333333333" );
However, I seriously don't like the above code style because I need to do \n at the end of every line, which is so inconvenient. I prefer all the info in the 3rd parameter in the above code can be summarized into a single quote instead of 3 quote, and better without \n . Can anybody help please?
Best Regards
Pei
I'm trying to write a single about() function, with only a QMessageBox as follows:
QMessageBox::information(this,
"My System",
"line 111111111111111111111111111111 \n"
"line 222222222222222222 \n"
"line 33333333333333333333333333333333333" );
However, I seriously don't like the above code style because I need to do \n at the end of every line, which is so inconvenient. I prefer all the info in the 3rd parameter in the above code can be summarized into a single quote instead of 3 quote, and better without \n . Can anybody help please?
Best Regards
Pei