Re: [Qt-qml] One question about binding in JavaScript

2010-08-03 Thread tapani.mikola
And to make the code cleaner one could do: test.js var rectComponent = null var rects = new Object() function createRect (color) { if (!rectComponent) rectComponent = Qt.createComponent("Rect.qml") if(rectComponent.status == Component.Ready) { var ret = r

Re: [Qt-qml] Setting CacheLoadControlAttribute For Items

2010-08-03 Thread warwick.allison
> I was wondering if there is a way to set the cache control within qml. > I would like to set the control to QNetworkRequest::PreferCache as I > know the data will not change on my server. Do you control the server? If so, publishing a reasonable Expires header on the content should work (with t

[Qt-qml] Setting CacheLoadControlAttribute For Items

2010-08-03 Thread Michael Dippold
I was wondering if there is a way to set the cache control within qml. I would like to set the control to QNetworkRequest::PreferCache as I know the data will not change on my server. Thanks, Mike ___ Qt-qml mailing list Qt-qml@trolltech.com http://list

Re: [Qt-qml] QDeclarativeItem subclasses and mouse events

2010-08-03 Thread michael.brasser
Hi, On 03/08/2010, at 4:55 AM, ext Jan Ekholm wrote: > I was recommended to make a C++ QDeclarativeItem subclass for my game map > tiles to get better performance. This worked well Given the simplicity of the QML tile (from http://gitorious.org/tactics), I'm a bit surprised that using a C++ ite

[Qt-qml] QML Webkit + Flash on N900?

2010-08-03 Thread tico.ballagas
Hi- I've been playing around with QML's Webkit, and tried to enable flash. Here is the QML code I tested: - import Qt 4.7 import QtWebKit 1.0 Rectangle { width: webView.width height: webView.height WebView { id: webView width: 640 height: 48

Re: [Qt-qml] One question about binding in JavaScript

2010-08-03 Thread tapani.mikola
At least doing the binding via two new properties work like this: Rect.qml = import Qt 4.7 Rectangle { id: rectangle width: 50 height: 24 border.color:"Gainsboro" color: "white" } and the main qml file: == import Qt 4.7 Rectangle { id: scene wi

Re: [Qt-qml] The Ultimate DevDays QtQuick guide (Was: Re: Declarative UI tracks/presence/mindshare at the forthcoming San Francisco Developer Days event ?)

2010-08-03 Thread henrik.hartz
Put it here for others to see; http://developer.qt.nokia.com/forums/viewthread/452/ On Aug 3, 2010, at 3:01 PM, ext henrik.ha...@nokia.com wrote: > Hi Paul, > > > my spontaneous take on a good route through DevDays 2010 sessions for those > focusing 100% on Qt Quick) > > > Sessions relev

[Qt-qml] The Ultimate DevDays QtQuick guide (Was: Re: Declarative UI tracks/presence/mindshare at the forthcoming San Francisco Developer Days event ?)

2010-08-03 Thread henrik.hartz
Hi Paul, my spontaneous take on a good route through DevDays 2010 sessions for those focusing 100% on Qt Quick) Sessions relevant for QtQuick / QML / QtDeclarative; Training (Day 0): All Day Qt Quick for C++ Developers: http://qt.nokia.com/qtdevdays2010/training Tech sessions (Day 1):

[Qt-qml] One question about binding in JavaScript

2010-08-03 Thread Zharkyn Kassenov
I have one problem with dynamiccaly binding, I checked the documentation, but has not found needed information. If you have a time, please help me, because I wish to write the program with use qml. Simple example: //Rect element Rect.qml //Rectangle with binding elements for height and width pr

Re: [Qt-qml] QML Application Wrapper anyone?

2010-08-03 Thread henrik.hartz
Note that we're also planning to do something similar in Qt Components, i.e. that runinng a QML App on MeeGo actually uses the relevant MComponentData etc and allows integration with the window chrome as described in http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-31 Henrik On Jul 13, 2010,

Re: [Qt-qml] QDeclarativeItem subclasses and mouse events

2010-08-03 Thread Jan Ekholm
On Tuesday 03 August 2010 09:51:13 michael.bras...@nokia.com wrote: > Hi, > > On 03/08/2010, at 4:27 PM, ext Jan Ekholm wrote: > > On Tuesday 03 August 2010 04:55:46 Gregory Schlomoff wrote: > >> Hello ! > >> > >> You may want to have a look at our code for drag and drop, it's working > >> well: