[Interest] Getting started with QML

kai.koehne at nokia.com kai.koehne at nokia.com
Wed Dec 7 12:59:11 CET 2011


> -----Original Message-----
> From: interest-bounces+kai.koehne=nokia.com at qt-project.org
> [mailto:interest-bounces+kai.koehne=nokia.com at qt-project.org] On Behalf
> Of ext Alex Strickland
> Sent: Friday, December 02, 2011 9:24 AM
> To: interest at qt-project.org
> Subject: Re: [Interest] Getting started with QML
> 
> On 2011/11/24 01:46 PM, Mark Constable wrote:
> > On 2011-11-24 12:07 PM, Alex Strickland wrote:
> >> If I maximise a screen, is there a way to scale everything?
> >> Does my initial rectangle of 400x400 scale up to the screen pixels?
> >> Does x = 5 become 20 if, for arguments sake, my screen is 1600x1600.
> >
> > Not automatically but you can do something like this...
> 
> Thank you Mark, I'll check it out.
> 
> May I politely prod to see if anyone has an answer for my other question?
> 
> "How do I "program" a grid, at startup I might want 1 row/1 col, or 1
> row/2 cols ... 2 rows/3 cols? I know a model in a Repeater can reference
> parent.rows and parent.columns, but how do I "inject" these values?"
> 
> To expand a bit, it is for a screen system to handle POS orders, and it should
> be configured to show requests from 1, 2, 3 ... etc cash registers. Thus the
> screen would be split into different list boxes correspondingly.

Hi,

My suggestion would be to look into (nested) ListViews (or GridViews) + appropriate Model(s) behind the scenes.

Regards

Kai 




More information about the Interest mailing list