Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting text? #736

Closed
magnus-ISU opened this issue Dec 11, 2021 · 2 comments
Closed

Selecting text? #736

magnus-ISU opened this issue Dec 11, 2021 · 2 comments
Assignees
Labels
a:text Text rendering, fonts, Text input (mS,bF) enhancement New feature or request

Comments

@magnus-ISU
Copy link

Is this possible? It seems like an important feature but as far as I can tell you can only select text in an enabled TextEdit or TextInput. But I want to be able to select text without allowing it to be editable or showing a blinking cursor always.

I think one possible solution would be to have a selectable: [true/false]; property on the generic Text, and maybe give it to the other widgets that can show text as well.

@tronical tronical self-assigned this Dec 13, 2021
@tronical
Copy link
Member

Yes, that makes sense and that seems the right straight-forward API for it.

@ogoffart ogoffart added the enhancement New feature or request label Nov 29, 2022
@ogoffart ogoffart added the a:text Text rendering, fonts, Text input (mS,bF) label Jul 13, 2023
@tronical
Copy link
Member

LineEdit/TextInput supports a read-only property and it's possible to programmatically set the selection after #4197 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:text Text rendering, fonts, Text input (mS,bF) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants