Factor Header search more, add framework support

Add Qt example