Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Viewing all articles
Browse latest Browse all 107

Change cursor color in TextField

$
0
0

How do I change the cursor color and probably width in QML TextField element?

Let's say we have the following:

import QtQuick 2.12import QtQuick.Controls 2.12TextField {    id: control    placeholderText: qsTr("Enter description")    background: Rectangle {        implicitWidth: 200        implicitHeight: 40        color: control.enabled ? "transparent" : "#353637"        border.color: control.enabled ? "#21be2b" : "transparent"    }}

How to make cursor color green or blue or whatever?


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>