Qt Forum

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

    Unsolved QDebug usage question

    General and Desktop
    2
    5
    1187
    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.
    • a8wz
      a8wz last edited by a8wz

      Hi, I am new to the forum and Qt programming, so please forgive me if this has an obvious answer that I can not see. I just upgraded to Qt 5.3.2 from 5.2.1 and experiencing some difficulty with my QDebug statements. The following code sample worked fine in 5.2.1 but now it is displaying a double quote at the end of the output:

      @qDebug() << "!n" << tr("[%1] Mounted %2 as %3")
      .arg(disk->deviceName())
      .arg(filenamelabel)
      .arg(disk->description());@

      and the output from the above looks like this:
      @[Disk 1] Mounted SDX Boot - Ultimate.atr as DD Diskette (180k)"@

      as you can see there is an extraneous " at the end of the output line, this didn't happen with Qt 5.2.1, so I am wondering what has changed since 5.2.1 or is this a problem with 5.3.2

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Just checked with 5.3.3 (built from git) and got something like

        @!n "[Disk 1] Mounted SDX Boot - Ultimate.atr as DD Diskette (180k)"@

        What OS are you running ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • a8wz
          a8wz last edited by

          Oh sorry, forgot to mention that I am on Windows 7 Ultimate 64 bit (SP1)

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            I couldn't reproduce it with the latest 5.4 from git

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • a8wz
              a8wz last edited by

              Hmm, maybe I'll try 5.4 and see what happens, I have quite a few of those QDebug statements in the code that produce the extra " at the end of the line.
              Thanks for checking it.

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