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. QDebug usage question
QtWS25 Last Chance

QDebug usage question

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.5k 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.
  • a8wzA Offline
    a8wzA Offline
    a8wz
    wrote on last edited by a8wz
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • a8wzA Offline
        a8wzA Offline
        a8wz
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • a8wzA Offline
            a8wzA Offline
            a8wz
            wrote on last edited by
            #5

            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
            0

            • Login

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