Re: [Qt-qml] Static analysis for QML

2010-11-25 Thread Christian Kamm
On Wednesday 24 November 2010 14:01:55 ext Gregory Schlomoff wrote: > For the record, I'm creating a custom QML type (ie: a QDeclarativeItem > subclass), exposed through: > > qmlRegisterType("MyCustomClasses", 1, 0, "MyClass"); > > So this seems an intermediary case between QML plugins and rando

Re: [Qt-qml] Static analysis for QML

2010-11-24 Thread Christian Kamm
On Wednesday 24 November 2010 12:04:56 ext Gregory Schlomoff wrote: > Hello, > > One of the main problems that I have with QML, and that actually is > directly linked to what makes it awesome, is the fact that you won't > have any compile-time error when you change property names / slots / > etc..

Re: [Qt-qml] Stroking lines and custom shapes (polygons) in QML?

2010-09-27 Thread Christian Kamm
On Sunday 26 September 2010 18:57:45 ext Bastian Bense wrote: > The first thing I was trying was drawing a simple line between navigation > buttons in a vertically aligned (Column element) layout. While there are > Elements like “Path” or “PathLine”; they all seem to have alignment of > other eleme

Re: [Qt-qml] Dummy model for QList model

2010-09-14 Thread Christian Kamm
On Tuesday 14 September 2010 13:10:12 ext Cornelius Hald wrote: > On Tue, 2010-09-14 at 01:00 +0200, michael.bras...@nokia.com wrote: > > Is the above the exact wording of the error message you are seeing? > > The error above is the error I receive from QtCreator. I noticed that I > can still exec

Re: [Qt-qml] What´s the correct QML type for arrays ?

2010-09-07 Thread Christian Kamm
On Monday 06 September 2010 16:40:10 ext Adriano Rezende wrote: > Another tricky thing is that only qml types are recognized inside the > list type. So if you place: >property list values > > It will break, but if you place: >property list values > > It works fine. This is something that

Re: [Qt-qml] Qml extending with QGraphicsWidgets

2010-07-14 Thread Christian Kamm
On Tuesday 13 July 2010 18:29:48 Alhola Kate (Nokia-CD/Helsinki) wrote: > Is there some extra property that need to be set compared traditional > c++ QGraphicsView items to get it displayed in Qml ? I tested that if I > just add my widget to normal QGraphicsScene, it gets displayed and both > pain

Re: [Qt-qml] painting

2010-06-21 Thread Christian Kamm
On Monday 21 June 2010 11:00:20 Alpert Alan (Nokia-D-Qt/Brisbane) wrote: > Rectangles are all you need in prototyping. If you really don't care about > how it looks, then a rectangle looks good enough in all ellipse cases I > can think of. Just imagine the smooth curves along with imaging the subtl

Re: [Qt-qml] painting

2010-06-21 Thread Christian Kamm
On Monday 21 June 2010 07:11:38 Allison Warwick (Nokia-D-Qt/Brisbane) wrote: > > drawing functions can be very handy for prototyping. At the moment, > > you'd be required to dip back to C++ to do these things. > > Or PhotoShop. Yes, if the image is static. As soon as you have dynamic content, it'

[Qt-qml] painting

2010-06-15 Thread Christian Kamm
Hi, currently Qml makes is very easy to use rectangles, but misses the other basic geometric shapes. As I understand, the main reason for not including them were possible performance issues, in particular during animation. A separate plugin though could easily come with the disclaimer that spee

Re: [Qt-qml] Qml to C++

2010-06-14 Thread Christian Kamm
On Friday 11 June 2010 23:57:18 ext Cristian Daniel Stamateanu wrote: > Hello, > I have a class defined in C++ called RssItem and exposed to QML with > qmlRegisterType(...). In Qml I am accessing an XmlListModel and > inside the delegate I am creating a RssItem object for each item in the > model t

Re: [Qt-qml] documenting the Qml grammar

2010-05-20 Thread Christian Kamm
On Wednesday 19 May 2010 08:31:11 Kennedy Aaron (Nokia-D/Brisbane) wrote: > wrote: > > 3. is there any use for 'default' properties that don't have 'alias' > > type? I couldn't think of any and altered the grammar accordingly. > > Object and list properties can be default. "default property Obje

[Qt-qml] documenting the Qml grammar

2010-05-18 Thread Christian Kamm
Hi, I think it'd be good to have an annotated grammar of the Qml language in the documentation. The current way of teaching by example is great for new users. It isn't very good as a quick reference, a reliable way to resolve corner cases or to figure out whether something is valid Qml. To hel

Re: [Qt-qml] Element at 'index' in Column or Row

2010-04-28 Thread Christian Kamm
On Wednesday 28 April 2010 09:03:02 ext rakesh.muthar...@tieto.com wrote: > How can I access Element at particular 'index' in Column or Row. > Basically I would like to update the content of element at runtime. > > For eg., > > Column { > id: testcolumn > spacing: 2 > height: 150 > width:

[Qt-qml] 2d table view

2010-04-26 Thread Christian Kamm
Hi, I want to show a flickable tile-based map view. The GridView element seems not to be designed for for this usecase: it shows only one-dimensional models and, more importantly, adjusts the number of shown columns to fit the view width. If I put a Grid into a Flickable, performace goes down d