Hm funny now it works.
Don't know what i changed really just compiled it again and now it works mh
Thanks a lot for your help!

but is it normal that i can't connect the signal to the slot in the "Signal slot editor"? It doesn't show my function in the "slot" window.