Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. SOLVED convernt __LINE__ to text in qDebug

SOLVED convernt __LINE__ to text in qDebug

Scheduled Pinned Locked Moved Solved C++ Gurus
3 Posts 2 Posters 513 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    Somehow
    lost the knowledge how to convert LINE (macro) to text so it can be used in qDebug.

    qDebug(LINE);

    MY QUESTION IS

    how to convert LINE so qDebug will work correctly ?

    in pseudo code

    qDebug((convert to text ) LINE);

    PS LINE is missing double underscores !!!!__ LINE __

    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      Somehow
      lost the knowledge how to convert LINE (macro) to text so it can be used in qDebug.

      qDebug(LINE);

      MY QUESTION IS

      how to convert LINE so qDebug will work correctly ?

      in pseudo code

      qDebug((convert to text ) LINE);

      PS LINE is missing double underscores !!!!__ LINE __

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @AnneRanch
      Dont use qDubug(...). Use qDebug() << __LINE__.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by Anonymous_Banned275
        #3

        Thanks , I knew the solution was very simple. SOLVED

        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