what's the difference?? HEADERS = calculatorform.h HEADERS += calculatorform.h
what's the difference??
HEADERS = calculatorform.h
HEADERS += calculatorform.h
it's the same syntax like in C++.
The first one replaces/overwrites the the contents of HEADERS, the second one appends to it's already set contents.
About the operators you can read "here":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-advanced-usage.html#operators.
"HEADERS = calculatorform.h" is assignment. Your HEADERS will contains ONLY calculatorform.h.
HEADERS += calculatorform.h is addition assignment and it equals HEADERS = $$HEADERS calculatorform.h.
You can test it with:
@TEST = test.a test.b
TEST += test.c
TEST = $$TEST test.d
TEST = test.f