[Kde-games-devel] deprecated queryExit

David Faure faure at kde.org
Fri May 9 15:48:45 UTC 2014


On Sunday 27 April 2014 19:25:59 Wolfgang Rohdewald wrote:
> Am Sonntag, 27. April 2014, 15:00:49 schrieb David Faure:
> > > Where can I read more about that?
> > 
> > If you wonder why it was removed, see the huge comment in kmainwindow.h,
> > in
> > kdelibs 4 :-)
> 
> OK, thank you.
> 
> Getting the abort/exit code right in kajongg (Python, using an asynchronous
> networking library with its own event loop and synchronous kdelibs) has
> always been difficult.
> 
> The current working solution reimplements aboutToQuit, closeEvent,
> queryClose and queryExit, trying everything to avoid a hanging process.

If your application supports multiple mainwindows, you should be able to call 
queryExit from queryClose when closing the last window (see 
KMainWindow::memberList().count()), and the behavior will be equivalent.

If your application supports a single mainwindow, then there is no reason to 
distinguish between queryClose and queryExit, you can just merge them.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the kde-games-devel mailing list