Results 1 to 8 of 8

Thread: On MacOSX, QMessage don't accept "\n"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: On MacOSX, QMessage don't accept "\n"

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    ha noi - viet nam
    Posts
    24
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: On MacOSX, QMessage don't accept "\n"

    Quote Originally Posted by munna
    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 ??
    //---------------------------------------

    Full name: Đậu Sỹ Mạnh
    Email: manhds@fsoft.com.vn
    Nationality: Vietname
    Languge: Vietnamese, Janpanese.

    //---------------------------------------

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.