How to monitor the change of focus of a LineEdit? #3908
Replies: 4 comments 9 replies
-
What are you trying to achieve? Is it to pop up a virtual keyboard? What platform are you using? |
Beta Was this translation helpful? Give feedback.
-
Adding on another use case, I want to do a my_line_edit.select_all() whenever my LineEdit gains focus. I can do this with a TextEdit via the FocusScope. However, LineEdit doesn't accept a FocusScope due to not allowing it to have any children. I tried surrounding it with a Rectangle and putting the FocusScope there, but that causes lots of other problems such as being unable to tab out of the field to the next field. Closest I've gotten was this:
|
Beta Was this translation helpful? Give feedback.
-
Any news of this issue?? |
Beta Was this translation helpful? Give feedback.
-
Even though that's not what you asked, what about using TextEdit and configuring its height, wrap, x, and y, (other stuff too), so you mimic LineEdit ? |
Beta Was this translation helpful? Give feedback.
-
I have seen that "Added focus-changed-event callback to FocusScope." in the Changelog of Slint 1.3.0. But I want to do something when the focus of a LineEdit changed, Is there any way we can do that now? Perhaps I should wait for #3811 to be implemented?
Beta Was this translation helpful? Give feedback.
All reactions