Imitating uic for qt build without qtgui