[Qt] optionally show debug window as main tab