[SailfishDevel] Image + text element, or a non-rectangular text field possible in silica?

szopin at gmail.com szopin at gmail.com
Mon Jan 6 18:49:46 UTC 2020


Sorry for another basic qml question, but is there a way to limit a TextArea expansion in a docked panel? maximumLineCount doesn't seem to work and the only way to get scroll option for longer inputs was hardcoding the height from start which is not aesthetically pleasing, but at least allows one to edit the input after it would normally end up above screen.

Thanks in advance,
szopin 

On Monday, 6 January 2020, David Llewellyn-Jones wrote:
> On 06/01/2020 16:10, szopin at gmail.com wrote:
> > Picture will be helpful: https://i.imgur.com/knA9qZP.png Is there any
> > way to make the text start from left edge after the thumbnail ends?
> > Not sure if there is something that would fill remaining space with
> > text automatically, or if you can maybe hardcode the thumbnail size
> > and force the text field to extend left after x lines?
> 
> One way would be along the lines of your second suggestion, to use the
> lineLaidOut() signal to increase the indent for something like the first
> five lines of your text.
> 
> https://doc.qt.io/qt-5/qml-qtquick-text.html#lineLaidOut-signal
> 
> There's an example of this in the Messages app. When you have a draft
> message shown on the main screen, the first line of the message is
> shifted slightly to the right to accommodate a little pencil icon. The
> code for this is around line 150 of the file
> /usr/share/jolla-messages/pages/groups/GroupDelegate.qml in case the
> example is helpful.
> 
> David
> -- 
> Website: http://www.flypig.co.uk
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.or

-- 
Sent from my Jolla


More information about the Devel mailing list