Skip to content

Saving custom user string property to perspective #784

@hormnek

Description

@hormnek

Hello! Thanks for your library!

In my app, I need to know the reason why the CDockWidget is closed (i.e. the user clicked on the x button or it is closed because it should not be displayed in the current program mode).
I use the closeRequested signal to distinguish between these two cases and store this additional information in my objects.
It works fine, but the problem starts when I start using perspectives. This additional information is lost.
I think it might be useful to store user's custom property in a dock widget and save it in perspectives.
I've created a pull request that adds this functionality.

Or maybe there is another way to solve my problem and I misunderstood something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions