Home > Mobile > After QEventLoop call exec () returns 1
After QEventLoop call exec () returns 1
Time:01-01
Development is Qt desktop application that requires blocking calls, began to call the exec is 0 is returned to normal, the quit can timely response, but return 1, a call back will return 1 call after the quit again call exec or useless, or return 1, using pointer, behind the destructor call New again, call exec or return 1, don't know why will always return 1, excuse me what reason be cause ah, see the source code
If (d - & gt; InExec) { QWarning (" QEventLoop: : exec: instance % p has already called the exec () ", this); return -1; }
That sounds like the judgment in front of the back - 1, because the back of the return 1 print, there is no printing and I call, do not know the specific what triggered return 1