Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Lubuntu 12.10, fully updated. I used apt-get to install ReText 3.1.4, a qt app, and the various recommends.

I managed to get the page and font appearance to my liking by using Qt4 settings and CSS. But I cannot change the insertion bar's appearance from minimal width and black to something a little broader and red.

The image below shows the more visible cursor (insertion bar) I have in Leafpad text editor (gtk2) as well as the code I used. Can I get the equivalent effect in ReText?


I'm guessing what I want to change is described here as the Qt::IBeamCursor. So my question would specifically be: can Qt::IBeamCursor be modified by an end-user just by using CSS (and not something more technical)? In the context of ReText, I have a CSS file here: ~/.config/ReText project/ReText.css which I've used to customize the color and size of text within code and pre tags.

share|improve this question
up vote 0 down vote accepted

According to the developer of ReText, "Qt supports cursor customization (via QStyle::PM_TextCursorWidth), but unfortunately that's not exposed via QStyleSheetStyle". A bug has been filed for this feature: Please allow customizing cursor width via CSS.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.