Results 1 to 3 of 3

Thread: Cleaned event list of main app, when qprocess finished.

  1. #1
    Join Date
    Sep 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Cleaned event list of main app, when qprocess finished.

    HI.

    I'm creating a simple application but I have some problem.
    In my main screen I have a big button that it count how many times I touch the button,
    also I have a small button on the top left that launches launch process, another application, the problem appears when you close the application that was launched in the process. The main app "myProcess.waitForFinished(-1);" is waiting for finish, and it run perfect. When we return to the principal app, all events that have been created in the previous process run again as if they were stored in a list while the process has been active.

    I try to solved my problem with event filter, but I think that this is not a good solution for me because all events are executed twice, in the process and in the main application, but not at the same time, those events run in the main application when the process is finished, when the events should be run just in the process.

    How can clear the event list in my main app when I return to it?

    if anyone could help me would really appreciate it! THANKS

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cleaned event list of main app, when qprocess finished.

    Where do those events come from? Events can't "migrate" from an external process to yours.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2011
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cleaned event list of main app, when qprocess finished.

    Hi wysota,
    thanks for your help.

    I know that may be going, I'm launching my application on embedded device and I think that all applications are connected with the touch device so all of them are listening and receiving the signals that it send. While QProcess is active in front, the touch device or the main application, inserts all event in a list to execute those events when the execution return to the main application.

    When I read your post,I tried execution in VFB, the execution of the application runs perfect, all generated events were executed by the correct applications.

    No that's what I can be doing wrong, some thing with the system environments

Similar Threads

  1. Replies: 2
    Last Post: 13th July 2011, 02:52
  2. QProcess finished slot not firing
    By doggrant in forum Qt Programming
    Replies: 0
    Last Post: 10th November 2010, 13:09
  3. QProcess::finished problems again
    By mdicosimo in forum Qt Programming
    Replies: 2
    Last Post: 23rd January 2009, 21:43
  4. QProcess::finished()
    By T1c4L in forum Qt Programming
    Replies: 11
    Last Post: 9th July 2008, 20:06
  5. Replies: 4
    Last Post: 13th February 2006, 11:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.