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. Remove some headers file using HEADERS -= does not work
Forum Updated to NodeBB v4.3 + New Features

Remove some headers file using HEADERS -= does not work

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 432 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.
  • F Offline
    F Offline
    Furotte
    wrote on last edited by
    #1

    Hi. Is it possible to remove some headers file using HEADERS -= in the .pro file. Just like SOURCES -=. I tried it and the file I put in the list of HEADERS -= are not removed from the compilation.

    aha_1980A 1 Reply Last reply
    0
    • F Furotte

      Hi. Is it possible to remove some headers file using HEADERS -= in the .pro file. Just like SOURCES -=. I tried it and the file I put in the list of HEADERS -= are not removed from the compilation.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Furotte said in Remove some headers file using HEADERS -= does not work:

      I tried it and the file I put in the list of HEADERS -= are not removed from the compilation.

      What do you expect from that? Header files are never compiled...

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • F Offline
        F Offline
        Furotte
        wrote on last edited by
        #3

        I'd rather like to remove a specific header file from the Qt project, but I get an error message saying "cannot delete the file from project. I don't want to delete the file permanently, only from the project. Why this file cannot be removed from the Qt project ?

        aha_1980A 1 Reply Last reply
        0
        • F Furotte

          I'd rather like to remove a specific header file from the Qt project, but I get an error message saying "cannot delete the file from project. I don't want to delete the file permanently, only from the project. Why this file cannot be removed from the Qt project ?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Furotte can you show your .pro file?

          Which header do you want to remove?

          Qt has to stay free or it will die.

          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