<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Custom TextArea with visible text outside. How?]]></title><description><![CDATA[<p dir="auto">Hello all!</p>
<p dir="auto">Need to create custom QML TextArea component. Something like this:</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/8b662ea8-c6fe-46e4-a4c2-7e9e1ee612a6.png" alt="Screenshot 2026-04-23 at 06.57.08.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The requirements for this component is:</p>
<ul>
<li>the text outside of TextArea need to be visible, already tried 'clip' with 'false' value, it's not working.</li>
<li>cursor need to be at one place positioned relatively to the TextArea itself, need to be illusion that text is around cursor</li>
<li>scrollbar customised and positioned differently</li>
</ul>
<p dir="auto">Tried to use TextArea inside of ScrollView:</p>
<pre><code>ScrollView {
            width: parent.width - 50
            height: 50
            clip: false;
            TextArea {
                placeholderText: "Enter your message here..."
                wrapMode: TextArea.Wrap;
                clip: false;
            }
        }
</code></pre>
<pre><code>Column {

        anchors.fill: parent
        clip: false

        ScrollView {

            width: parent.width
            height: 200;
            clip: false; 

            TextArea {

                id: oTextArea
                text: "Text...Text...Text...Text...Text...Text..." 
                wrapMode: TextArea.Wrap
                clip: false
            }
        }
    }
</code></pre>
<p dir="auto">Different types of wrap mode and false value for clipping in different components.</p>
<p dir="auto">Tried to use TextFiled:</p>
<pre><code>TextField {

	id: oRoot;
	wrapMode: TextArea.WrapAtWordBoundaryOrAnywhere;
	clip: false;
}
</code></pre>
<p dir="auto">Nothing is affecting clipping, everything is by component border. Technically need to make clipping by 'with' within wrapping by word and make visible by 'hight'.</p>
]]></description><link>https://forum.qt.io/topic/164590/custom-textarea-with-visible-text-outside.-how</link><generator>RSS for Node</generator><lastBuildDate>Mon, 25 May 2026 06:05:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164590.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Apr 2026 04:06:32 GMT</pubDate><ttl>60</ttl></channel></rss>