Skip to content

Make dataset description text selectable #94

@cdebonnel

Description

@cdebonnel

Problem

A dataset description may contain example inputs for users to copy in a text field of the dataset. However, the dataset description is not selectable by mouse, preventing easy copying.

Proposal

Add a per-item flag to dataset items so that the description can be made selectable when desired.

Solution

Add a per-item flag (selectable_description: bool = False) to dataset item definitions. When True, render the description widget with Qt.TextSelectableByMouse. Default remains False for backward compatibility.

Alternatives

A non-editable TextItem may be used to display a selectable text or a new widget created through subclassing and setting of appropriate Qt flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions