SharpHawk
SharpHawk

Reputation: 398

Qt app stays in memory even after MainWindow is closed

The problem is as follows: if the application is closed while it's not actively doing anything, it exits correctly. If it's actively working on something (waiting in a while loop, for example), however, the main window will close but the program will continue to run in the background, as confirmed by opening the task manager.

I've spent a good part of today googling the problem and implementing possible fixes, but to no avail. It seems like the quit() function simply doesn't do anything. Here are some things that I've tried:

I just want the application to completely exit when the main window is closed.

I'm using the qextserialport library, if that makes any difference.

Upvotes: 7

Views: 3140

Answers (1)

ypnos
ypnos

Reputation: 52337

I don't know what's wrong, but as your slot actually receives the signal, you can call exit() from that slot function as a workaround.

Upvotes: 1

Related Questions