Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] qDebug escape character ...

[SOLVED] qDebug escape character ...

Scheduled Pinned Locked Moved General and Desktop
qdebug
3 Posts 2 Posters 2.0k Views
  • 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 Offline
    T Offline
    ttuna
    wrote on last edited by ttuna
    #1

    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
    0
    • R Offline
      R Offline
      raoulh
      wrote on last edited by
      #2

      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
      1
      • R raoulh

        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 Offline
        T Offline
        ttuna
        wrote on last edited by
        #3

        @raoulh Thank you ...

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved