I don't know why a.exec() won't return and end the process! It's a simple code:
It was supposed to open a dialog and when I hit the 'X' button it should close and end the process, but instead the process keeps running!.. Anyone knows why?Qt Code:
int main(int argc, char *argv[]) { QDialog w; w.setAttribute(Qt::WA_QuitOnClose); w.exec(); return a.exec(); }To copy to clipboard, switch view to plain text mode
P.S: I know I could've used QDIalog::show() method instead of QDIalog::exec() and it would work fine, but I really want to understand why it won't work this way. This is just a simple code, but I'll need it to construct more complex ones.
Thanks o/
Bookmarks