Remove caret in LineEdit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Deoz

How can I remove (or make invisible) the caret of a LineEdit? I don’t see an option anywhere that allows it.

:bust_in_silhouette: Reply From: exuin

I don’t think there’s an option to remove the caret altogether (but maybe you can submit a proposal on the suggestions github). Try changing the caret’s color to the color of the background instead (custom_colors/cursor_color). That should hide it well enough. Unless you don’t have a single color for the background.

:bust_in_silhouette: Reply From: PEIGNAULT Laurent

You can set the caret opacity to 0 in your theme :

Your theme

  • Line Edit
  • Colors
  • Cursor Color
    → Set the opacity to 0