background activated when qt4 app is running

u2bpavankumar
Hi,

I am working on Mini2440. I wrote some example qt4 application and tried to
run it. When my application is started and i touch the screen, sometimes
application in the background or desktop is activated. Is there a way to
prevent the background apps from activating when running Qt application?

Please let me know what could be the problem

Tom
Do You have Qtopia in background? If yes - You should kill that process. If
You are running more then one QT4 app - the first one should be run with
'-qws' parameter, and the other can work without it.


best regards
Tom

*Baby*
Hi,

I have exactly the same bug.

@Tom

You are not the first to tell me to kill all Qtopia process. But how,
that's the question.

I try to click on éterminate server" just before to run my Qt app, but once
the server is turn off, you don't have mouse or touch screen any more.

Tom
Had same problem as You when I was starting working with Mini2440. You
should have console on Your PC screen. Then "ps | grep qtopia", and after
that You can kill qtopia process using process ID. You should also turn it
off somewhere in starting scripts (rcS?) - I can't remember where it whas
because I'm using now distribution without qtopia (but I was running QT
apps on also on original distribution - worked fine).

good luck
Tom

*Baby*
Ok, with a console on the PC, I agree but it's not a reliable solution.

I tried to suspend qpe and qss process, then I ran my Qt app (works well)
and then continue qpe and qss, but after that the screen is black and
Qtopia is partially displayed when I touch the screen.

After I run my Qt app, FriendlyARM's apps don't start anymore.

An idea ?

Thanks.

TungPham
You can try the fluidlauncher demo in the embedded demos of QT4, there is
background widget (laucher) and many application widget, but it works well
:)

*Baby*
Yes maybe, but it's not proper.

I think that it's not a solution.

neil
No post since almost one year.
Has anybody found exact solution for this?
I am facing same problem

YAIR SAUCEDO
My steps are:

Edit file qt4:
   vi /bin/qt4
   Comment the lines:
      #cd /usr/local/trolltech...
      #./fluidlaunexec /bin/qt4 1>/dev/null 2>/dev/nullcher -qws

   Add lines:
      cd /home/plg
      ./MyQtApp -qws

Edit file qtopia:
   vi /bin/qtopia
   Comment line:
      #exec $QPEDIR/bin/qpe 1>/dev/null 2>/dev/null
   Add line:
      exec /bin/qt4 1>/dev/null 2>/dev/null

Reboot System:
   reboot