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 22 Jun 2019, 19:06 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.

    A 1 Reply Last reply 22 Jun 2019, 19:14
    0
    • F Furotte
      22 Jun 2019, 19:06

      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.

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 22 Jun 2019, 19:14 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 23 Jun 2019, 01:01 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 ?

        A 1 Reply Last reply 23 Jun 2019, 07:17
        0
        • F Furotte
          23 Jun 2019, 01:01

          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 ?

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 23 Jun 2019, 07:17 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

          1/4

          22 Jun 2019, 19:06

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved