[Solved] qmake: += but avoiding duplicates
-
A few months ago, someone posted that an alternative to += exists, which will append to a list just as += does, but will avoid duplicate entries.
So instead of HEADERS += ... you could write HEADERS (?)= ... and be sure that every file is only mentioned once.
For some reason, this is not in the docs (or very well hidden).
Does anyone know the thing I'm talking about?
-
@sierdzio
Thanks. I somehow missed that one.Edit: Now how do I mark the topic "solved"?
-
@sierdzio
Thanks. I somehow missed that one.Edit: Now how do I mark the topic "solved"?
@Asperamanca said:
@sierdzio
Thanks. I somehow missed that one.Yes, I've noticed this part of help has seen a major rewrite in Qt 5. Not sure where the note is located in new docs. If it is missing, then it is probably a bug.
Edit: Now how do I mark the topic "solved"?
You need to go to "Topic Tools" menu - there is a button for marking threads as solved there. If it does not work (I know there used to be some glitches here after forum transition), you can do the good old manual approach: add [solved] to topic title.
-
Hi,
It's now in qmake Language
-
@Asperamanca said:
@sierdzio
Thanks. I somehow missed that one.Yes, I've noticed this part of help has seen a major rewrite in Qt 5. Not sure where the note is located in new docs. If it is missing, then it is probably a bug.
Edit: Now how do I mark the topic "solved"?
You need to go to "Topic Tools" menu - there is a button for marking threads as solved there. If it does not work (I know there used to be some glitches here after forum transition), you can do the good old manual approach: add [solved] to topic title.
@sierdzio Tools menu doesn't offer that option (but it strangely has an empty space exactly the size of a button). But good old way works of course :-)
-
Hm, maybe it's available only to admins at the moment. I know Tero has some problems with this issue (in the forum software Qt IO is using, changing topic title - to prepend [Solved] - requires admin priviledges), but is working on it.