small fix in qt, add test for added code in glir