What is the correct way to automatically call strip in qt projects in cross-compile mode or not?
You can use QMAKE_POST_LINK
target within .pro
file of your project like that:
CONFIG += console
TARGET = my_prog
SOURCES += \
main.cpp
QMAKE_POST_LINK=$(STRIP) $(TARGET)