[qt] add option to disable gui part