PDA

View Full Version : On MacOSX, QMessage don't accept "\n"



manhds
5th June 2006, 12:27
Hi all !
I use Qt4.0.0. My project use QMessage, i build on Window, All Messages running good with "\n"(down the line) but On MacOSX, I don't do it. I don't know, You can help me ?

munna
5th June 2006, 12:52
Try replacing all the "\n" with QString(QChar('\n'))

i.e. use

replace("\\n",QString(QChar('\n')));

I am not sure if this will work or not.

manhds
7th June 2006, 04:18
Try replacing all the "\n" with QString(QChar('\n'))

i.e. use

replace("\\n",QString(QChar('\n')));

I am not sure if this will work or not.

I'm try it but It doesn't run good! I couldn't run to down the line ??

michael
7th June 2006, 06:01
Hi all !
I use Qt4.0.0. My project use QMessage, i build on Window, All Messages running good with "\n"(down the line) but On MacOSX, I don't do it. I don't know, You can help me ?

On mac instead of using "\n" use one of these, I can't remember which one.
"\r"
"\n\r" or maybe it was "\r\n" I can't remember which.

patrik08
7th June 2006, 10:11
I use QT 4 1.13 on Tiger (mini mac) xcode 2.2 and "\n" works.... fine

manhds
7th June 2006, 10:21
I use QT 4 1.13 on Tiger (mini mac) xcode 2.2 and "\n" works.... fine
but i'm using QT 4.0.0 on MacOSX and XCode 2.0. Can you help me ?

wysota
7th June 2006, 13:45
Upgrade to Qt 4.1.3. Qt 4.0.0 was very buggy.

patrik08
7th June 2006, 16:04
but i'm using QT 4.0.0 on MacOSX and XCode 2.0. Can you help me ?

to work on xcode 2.2 ( Gnu Make 3.8 ) you must install Tiger 10.4.6 buy by apple or nobuy on limeware...
Install Xcode 2.2 and qt to /Developer/qt set path .... thats all...

Panther is so slow ..... Tiger have a better performance.....