Results 1 to 3 of 3

Thread: Can not interrupt a process when set var=interrupt=true + process 'allevents'

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Can not interrupt a process when set var=interrupt=true + process 'allevents'

    I have a button with the text 'start', when a 'my_process' starts I change its text to 'stop' if I click on the button when its text is 'stop' I call my_process.interrupt, which sets interrupt =true, but even if I execute :
    QApplication:rocessEvents(QEventLoop::AllEvents);
    I can not detect my_var interrupt== true.
    Any idea ? 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: Can not interrupt a process when set var=interrupt=true + process 'allevents'

    My idea is you should express your thoughts a bit more clearly for people to understand you. I have no idea what setting a variable has anything to do with Qt's event loop.
    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 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can not interrupt a process when set var=interrupt=true + process 'allevents'

    Solved I 'm calling a interrupt function on a new class instance.
    Sorry .....

Similar Threads

  1. Run Process without dependance
    By MisterIKS in forum Qt Programming
    Replies: 3
    Last Post: 21st November 2010, 19:38
  2. Sending OS I/O interrupt signals!
    By nofortee in forum Qt Programming
    Replies: 6
    Last Post: 13th July 2010, 15:42
  3. Interrupt/Exception caught while compiling Qt program
    By Qt Coder in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2010, 22:08
  4. How to communicate Qt Process with non-qt process
    By nrabara in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 15th February 2009, 21:01
  5. Control-C to interrupt is not working
    By rburge in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2006, 21:18

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.