Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. exit

    Log in to post
    • All categories
    • S

      Solved QThread::exit documentation seems wrong
      General and Desktop • qthread exit quit • • ScumCoder

      5
      0
      Votes
      5
      Posts
      98
      Views

      S

      @Christian-Ehrlicher It took me a whole day, but I finally understood that you were referring to the fact that exit()/quit() can't be used in the same vein as requestInterruption()/isInterruptionRequested() or terminate().

      I first learned about basic QThread semantics so long ago (more than a decade I think), that the fact that it's possible to not understand that got completely lost on me.

    • mbruel

      Solved Segmentation fault on SIGINT interception when trying to exit the QCoreApplication
      General and Desktop • exit signal sigint qcoreapplicatio • • mbruel

      8
      0
      Votes
      8
      Posts
      4510
      Views

      SGaist

      Also, what backtrace to you get from the debugger ?

    • B

      Will code after a call to QThread::exit() ever get executed?
      General and Desktop • exit qthread • • Bart_Vandewoestyne

      7
      0
      Votes
      7
      Posts
      2543
      Views

      Jeroentjehome

      He,
      If you don't do a real good update now, it will bite you in the ass later on! Count on it!!
      Since he stops the running thread, it is a program with an finite loop, not as you mentioned that maya is not totally right. Otherwise check out the QThreadPool stuff for higher level QThread control.

    • X

      How to exit a Qt console app from an inner class? [ SOLVED ]
      General and Desktop • main exit console applica • • xtingray

      14
      0
      Votes
      14
      Posts
      10965
      Views

      X

      Finally, the best/clean way I found to deal with my requirement was this:

      Inside the main.cpp and before I start my service, I make all the verifications I need... if something goes wrong, then I call "return 0;" and that's it, a clean exit. If everything goes well, then I start my service. End of the story.

      Thank you for your advices guys! :)

    • O

      Program exits with code -1073741510.
      General and Desktop • exit crash • • one-one

      3
      0
      Votes
      3
      Posts
      1055
      Views

      H

      Search the forum for the code... see here

    • V

      [SOLVED] Proper handling of QThread on main window close
      General and Desktop • qthread mainwindow exit • • voidtrance

      11
      0
      Votes
      11
      Posts
      15075
      Views

      V

      @voidtrance said:

      @Rondog Thanks for the advice. I'll look into the closeEvent() method.

      The MainWindow::closeEvent() provided exactly what I needed.

    • Arty.McLabin

      Alert/Error window summon after main Widget is closed?
      General and Desktop • alert closed error message messagebox window after exit quit • • Arty.McLabin

      6
      0
      Votes
      6
      Posts
      2018
      Views

      Arty.McLabin

      @Chris-Kawa, i see what you did there! :d
      thanks, didn't even think about that approach before! very useful!