qt6-bb10/examples/widgets/mainwindows
Andreas Hartmetz e7bf0edfd4 Add option to disable "session management by closing windows".
That feature is a poor man's session management for applications
that do not implement any specific session management features.
It badly interferes with proper session management support, so
applications must be able to disable it.

This enables fixing applications with
QGuiApplication::quitOnLastWindowClosed() true - the default -
dying too early, before they are enumerated for the list of
applications to restart on session restore, thus preventing them
from being restored. See
https://bugs.kde.org/show_bug.cgi?id=354724

[ChangeLog][QtGui] Qt asking to close windows on session exit as
a fallback session management mechanism has been made optional.
Disabling it fixes session management for applications that
implement full session management. See
QGuiApplication::isFallbackSessionManagementEnabled().

Task-number: QTBUG-49667
Change-Id: Ib22e58c9c64351dea8b7e2a74db91d26dd7ab7aa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: David Faure <david.faure@kdab.com>
2016-02-15 16:10:20 +00:00
..
application Add option to disable "session management by closing windows". 2016-02-15 16:10:20 +00:00
dockwidgets Polish the examples/widgets/dockwidgets example. 2015-07-20 13:25:06 +00:00
mainwindow Polish the examples/widgets/mainwindows example. 2015-07-17 14:15:11 +00:00
mdi Add recent file handling to SDI/MDI and remove the recentfiles example. 2015-07-31 04:30:35 +00:00
menus Port examples/widgets/mainwindows/menus to new connection syntax. 2015-07-20 13:24:59 +00:00
sdi Fix mainwindow examples when clipboard support is disabled. 2015-08-11 16:23:23 +00:00
README
mainwindows.pro Add recent file handling to SDI/MDI and remove the recentfiles example. 2015-07-31 04:30:35 +00:00

README

All the standard features of application main windows are provided by Qt.

Main windows can have pull down menus, tool bars, and dock windows. These
separate forms of user input are unified in an integrated action system that
also supports keyboard shortcuts and accelerator keys in menu items.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.