Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qc20.0 cannot open the file in console output
Qt 6.11 is out! See what's new in the release blog

qc20.0 cannot open the file in console output

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 100 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.
  • Q Offline
    Q Offline
    QtTester
    wrote last edited by
    #1

    here 5.15+qc8.0 and 6.8+qc8.0:
    test code:
    qDebug().nospace() << "\033[34m" << "my info, file://"<<FILE<<":"<<LINE<<" good\033[0m";
    录制_2026_08_10_14_50_29_20.gif

    but same code fail in qc20.0+5.15:
    录制_2026_08_10_14_52_49_652.gif

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      QtTester
      wrote last edited by
      #2

      no one has this problem?

      1 Reply Last reply
      0
      • hskoglundH Online
        hskoglundH Online
        hskoglund
        wrote last edited by
        #3

        Hi, I think the FILE macro is not the best way to find your main.cpp file since it usually skips giving you the full path to the file. For the MSVC compiler you can try the /FC compile switch

        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