Re: [Interest] QML Text.Fit question

2015-02-01 Thread Harri Pasanen
for QFontMetrics' API, but I'm just throwing > ideas around. :) > > > From: Harri Pasanen > Sent: Thursday, 29 January 2015 21:12 > To: Curtis Mitch; interest@qt-project.org > Subject: Re: [Interest] QML Text.Fit question > > We'll putting on my de

Re: [Interest] QML Text.Fit question

2015-01-30 Thread Curtis Mitch
__ From: Harri Pasanen Sent: Thursday, 29 January 2015 21:12 To: Curtis Mitch; interest@qt-project.org Subject: Re: [Interest] QML Text.Fit question We'll putting on my designer classes here: Imagine I have a rectangle on screen, let's say a sign to a shop. I want to have the ti

Re: [Interest] QML Text.Fit question

2015-01-29 Thread Harri Pasanen
__ > From: Harri Pasanen > Sent: Wednesday, 28 January 2015 15:48 > To: Curtis Mitch; interest@qt-project.org > Subject: Re: [Interest] QML Text.Fit question > > On 28/01/2015 13:25, Curtis Mitch wrote: >> Why do you need to know the size

Re: [Interest] QML Text.Fit question

2015-01-29 Thread Curtis Mitch
2015 15:48 To: Curtis Mitch; interest@qt-project.org Subject: Re: [Interest] QML Text.Fit question On 28/01/2015 13:25, Curtis Mitch wrote: > Why do you need to know the size of the text? I work mostly in mobile space where the size, resolution and pixel densities vary greatly between displays.

Re: [Interest] QML Text.Fit question

2015-01-28 Thread Harri Pasanen
On 28/01/2015 13:25, Curtis Mitch wrote: > Why do you need to know the size of the text? I work mostly in mobile space where the size, resolution and pixel densities vary greatly between displays. If one wants to automate layout so that it remains usable (even if not "artful" in all cases), one

Re: [Interest] QML Text.Fit question

2015-01-28 Thread Curtis Mitch
t; Subject: [Interest] QML Text.Fit question > > If in QML Text item I use Text.Fit size, like > > Text { > id: st > anchors.centerIn. parent > width: 200 > height: 100 > fontSizeMode: Text.Fit > minimumPointSize: 6 >

[Interest] QML Text.Fit question

2015-01-28 Thread Harri Pasanen
If in QML Text item I use Text.Fit size, like Text { id: st anchors.centerIn. parent width: 200 height: 100 fontSizeMode: Text.Fit minimumPointSize: 6 font.pointSize: 120 text: "Size me if you can!" } That works ok. But I did not find a way to query the