[Qt-interest] Can QSessionManager be used for crash problems ?

Girish Ramakrishnan girish at forwardbias.in
Fri Nov 26 17:48:50 CET 2010


Hi,

On Fri, Nov 26, 2010 at 3:46 PM, Sujan Dasmahapatra <sdh at lmwindpower.com> wrote:
> Dear friends
>
> Can QSessionManager be used for crash problems ? Means if anything happend
> to the application if it crashed or power interrupted , can we use
> QSessionManager to save the last session and next time when it starts it
> should start from there. I appreciate for any on this . Thanks sujan
>

No, QSessionManager is not for crash recovery. It's a mechanism for
so-called "session managers" to restore your desktop when you log back
in. For example, if you logged out with firefox running with 4 tabs,
the session manager would tell firefox to save it's state. When you
log back in, the session manager will launch firefox automatically and
ask it restore itself from it's previously saved state. In
http://en.wikipedia.org/wiki/Session_management, QSessionManager
relates to "desktop session management"

For crash recovery, you need "browser session management" (in the
wikipedia link). This involves your app periodically checkpointing
it's state using QSettings or such.

Girish



More information about the Qt-interest-old mailing list