1.1: Select Release mode, compile
1.2: run macdeployqt
For my project, the command is:
macdeployqt /Users/Jason/Desktop/build-untitled-Desktop_5_4_0_64bit-Release/untitled.app -dmg
Then go back and pack it up.
Later, we will find that there is an additional dmg file in the app directory.