QtQuick example: save & restore the state (requires Qt 5.2)