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. How to print contents of .pro ?
Forum Updated to NodeBB v4.3 + New Features

How to print contents of .pro ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 533 Views 3 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
    #1

    OK , to avoid responses "you have asked this before "...

    I know I asked this before but I lost the code...

    I want to print the contents of CONFIG option in .pro file.
    How ?
    i did try all these

    print (CONFIG)
    message (CONFIG)
    message (link_pkgconfig)
    message ("ENTRY MDI_BY.pro modules core gui bluetooth concurrent")
    message(when the Makefile is processed.)

    8Observer88 1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      https://doc.qt.io/qt-6/qmake-language.html#variable-expansion

      1 Reply Last reply
      3
      • A Anonymous_Banned275

        OK , to avoid responses "you have asked this before "...

        I know I asked this before but I lost the code...

        I want to print the contents of CONFIG option in .pro file.
        How ?
        i did try all these

        print (CONFIG)
        message (CONFIG)
        message (link_pkgconfig)
        message ("ENTRY MDI_BY.pro modules core gui bluetooth concurrent")
        message(when the Makefile is processed.)

        8Observer88 Offline
        8Observer88 Offline
        8Observer8
        wrote on last edited by 8Observer8
        #3

        @AnneRanch said in How to print contents of .pro ?:

        message (CONFIG)

        Use this: message($$CONFIG)

        P.S. I have spent sometime for this. Maybe direct answer will be useful for someone.

        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