Results 1 to 3 of 3

Thread: How to tell Creator about files that are not C++ files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2019
    Tucson, AZ USA
    Thanked 1 Time in 1 Post
    Qt products

    Default How to tell Creator about files that are not C++ files

    I have some files in my C++ project that are other than .cpp or .h files. One is an .ini file; others have to do with my code generation.

    How do I tell Creator about these files so they show up on the navigator panel so that I can edit them?

    To have .cpp files show up, I code these in the .pro file: SOURCE+=...; for .h files, HEADERS+=...

    I have coded DISTFILES+=... in the .pro file which causes things to show up in the Navigator, but I'm certain that's an incorrect usage of DISTFILES.

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

    Default Re: How to tell Creator about files that are not C++ files

    It is correct. After using "Add existing file" to project and select an INI file Qt Creator creates DISTFILES rule in pro file.

Similar Threads

  1. Replies: 0
    Last Post: 13th September 2017, 15:29
  2. Adding .bin .rules and .ini files in qt creator
    By ftl_embedded in forum Qt Programming
    Replies: 3
    Last Post: 11th September 2015, 14:21
  3. Replies: 3
    Last Post: 25th April 2015, 10:09
  4. Qt Creator Qt Creator hang with certain source files
    By grayfox in forum Qt Tools
    Replies: 2
    Last Post: 23rd January 2015, 09:00
  5. Creator and DEF files
    By qtYoda in forum Qt Tools
    Replies: 18
    Last Post: 3rd June 2011, 22:13

Tags for this Thread


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.