Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] qDebug escape character ...

    General and Desktop
    qdebug
    2
    3
    1584
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      ttuna last edited by ttuna

      I've just installed Qt 5.5.0 (-finally) and run into the problem that qDebug() << "\nHello"; now generates the output "\nHello" instead of a newline "Hello" (as it worked with Qt 5.4).
      Any idea how it comes?

      Best regards ...

      1 Reply Last reply Reply Quote 0
      • R
        raoulh last edited by

        Hi,

        It seems that it was an intended change. Check that bug for details: https://bugreports.qt.io/browse/QTBUG-47316

        One workaround would be to use:
        qDebug().noquote() << "\nHello";

        T 1 Reply Last reply Reply Quote 1
        • T
          ttuna @raoulh last edited by

          @raoulh Thank you ...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post