(Plasma 5.2/frameworkintegration 5.6.0) By default, the text cursor blinks in KDE and in Qt 5 apps (and likely in others). However, there is no option to change the blink rate, or disable blinking altogether. This may not be an issue for most, but some find the blinking annoying, particularly in applications which use large/block cursors, rather than thin vertical bars. For older Qt versions, there is qtconfig, which can adjust the Qt cursorFlashTime parameter in a system-wide way. For Qt 5 and KDE Plasma 5.2, the only solution I've found is to use LD_PRELOAD to override the default value. Apologies if this bug is misfiled; I really have no idea where it fits best; System Settings > Keyboard may be a reasonable place for the setting. I chose frameworkintegration after looking through the Qt source (qtbase/src/gui/kernel/qstylehints.cpp), and finding that QStyleHints::cursorFlashTime can get its value from either QPlatformTheme::CursorFlashTime or QPlatformIntegration::CursorFlashTime. LD_PRELOAD solution that works in the meantime, for others who might find this bug: https://github.com/igogo/qt5noblink The same hack should be able to adjust the blink rate, simply by adjusting the return 0 to a value in milliseconds (the default appears to be 1000 ms).
I confirm this also, I originally added a patch to Konsole to get QApplication::cursorFlashTime() and use this, this is now broken as we don't have qtconfig for Qt5. I wonder if we should add an option the System Settings -> Keyboard KCM plugin as you say.
This would be to modify kcm_keyboard to add this option
This got moved to plasma-desktop/kcms/keyboard, I will look into restoring this functionality for KDE 5 Frameworks.
(In reply to Thomas Backman from comment #0) > LD_PRELOAD solution that works in the meantime, for others who might find > this bug: https://github.com/igogo/qt5noblink > The same hack should be able to adjust the blink rate, simply by adjusting > the return 0 to a value in milliseconds (the default appears to be 1000 ms). Thank you for that. Ironically, it doesn't work to suppress the blink, in konsole the cursor flashes frenetically, with two cores at 60%. But I want a 4 Hz blink, and 250 works nicely.
Hi, is it possible to review this? CursorBlinkRate=0 in the KDE section of .config/kdeglobals does not have any effect anymore.
> Hi, is it possible to review this? CursorBlinkRate=0 in the KDE section of .config/kdeglobals does not have any effect anymore. You had me scared there! But I can't confirm this. It still works for me on current Neon. I also installed Neon unstable (with Plasma 6.1dev) in a VM and disabling the blinking cursor worked there, too. Would be nice if we could configure this in system settings...