Link to qtmain automatically