qt application window disappears

soroosh
Hi
I'm trying to run qt applications on my board and I have a bash script that
sets some variables and then executes the application. But the problem is
that the window disappears when I click on it and if I close the terminal
everything else disappears as well and goes to booting screen without
coming out.
I have to restart the board to fix it. What am I missing?

soroosh
plus I created the application using qt creator and activated embedded
release and used qt-arm-4.6.2 and arm-none-linux-gnueabi-gcc to build it