Results 1 to 3 of 3

Thread: Retrieve Data from Project-File

  1. #1
    Join Date
    May 2015
    Posts
    37
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Retrieve Data from Project-File

    Hi there,

    snippet of my pro-file as follows:

    Qt Code:
    1. DEFINES += QT_NO_DEBUG_OUTPUT
    2. CONFIG += release
    3. TARGET = MyAppName
    4. TEMPLATE = app
    To copy to clipboard, switch view to plain text mode 

    Can I somehow retrieve the TARGET (MyAppName) programmatically to use it on compile time to store it as a variable? The purpose could be to write it into a logfile on startup. I use it quite often hard coded to show it here and there at runtime. On every change on the desired target I have to search all the code to replace it.

    Thank you all. Greetings, Lars
    Last edited by mustermann.klaus@gmx.de; 15th October 2020 at 14:09.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,521
    Thanked 278 Times in 273 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Retrieve Data from Project-File


  3. #3
    Join Date
    May 2015
    Posts
    37
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Retrieve Data from Project-File

    Ahh, that easy. I'll try. Thank you.


    Added after 19 minutes:


    Works perfect. Thanks a lot.
    Last edited by mustermann.klaus@gmx.de; 15th October 2020 at 14:30.

Similar Threads

  1. Retrieve of the data from the database..?
    By gunturrohith in forum Qt Programming
    Replies: 2
    Last Post: 24th April 2015, 11:10
  2. Replies: 1
    Last Post: 7th April 2015, 23:28
  3. problem while retrieve data from XML
    By asma_ramadan in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 26th July 2011, 11:30
  4. Sql Server cannot retrieve data from select
    By Atomino in forum Qt Programming
    Replies: 10
    Last Post: 7th September 2006, 16:37
  5. [QT4 & XP] retrieve data from QTreeView's model
    By incapacitant in forum Newbie
    Replies: 1
    Last Post: 2nd March 2006, 13:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.