If you switch to CMake, this is an option (I believe that QtCreator supports CMake and QMake projects), then you can use the CMake build type "RelWithDebInfo" to accomplish what you are looking for.
However, if CMake is not an option, you can configure the project file to include debugging information:
QMAKE_CFLAGS_RELEASE += -Zi QMAKE_CXXFLAGS_RELEASE += -Zi QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF
Or if you are using gcc / mingw:
QMAKE_CFLAGS_RELEASE += -g QMAKE_CXXFLAGS_RELEASE += -g
source share