Re: [Qt-qml] enumerations in QML

2010-08-05 Thread henrik.hartz
Could you spec this out in detail in a http://bugreports.qt.nokia.com entry? Then, use the voting system there rather than this list, makes it easier to track how many actually want it :) Thanks, Henrik On 5. aug. 2010, at 21.47, ext alan.westbr...@nokia.com wrote: > > On Aug 5, 2010, at 12:1

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

2010-08-05 Thread Alan Alpert
On Wed, 4 Aug 2010 06:25:26 Ballagas Tico (Nokia-NRC/PaloAlto) wrote: > 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 >

Re: [Qt-qml] enumerations in QML

2010-08-05 Thread Justin McPherson
Hi, Maybe this suits your need? - var Media = (function() { var en = {}; for(i=0; i > On Aug 5, 2010, at 12:10 PM, ext Alex wrote: > >> On Wed, Aug 4, 2010 at 10:03 PM, wrote: >>> On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote: >>> Isn't there a way to expose an enum to QML with qR

Re: [Qt-qml] Image Reload

2010-08-05 Thread warwick.allison
> see any clean way to do this. I can append a '?' to the end of the > current source and retry but then i'm not sure how caching will work. The cleanest is probably adding this to your Image: function reload() { var tmp=source; source=""; source=tmp; } This works for the case of a failed imag

Re: [Qt-qml] QT 4.7 QSqlDatabase: QMYSQL driver not loaded

2010-08-05 Thread warwick.allison
> Although this problem is not specific to QML but my application is QML > application in which I am getting error, based on qt4.7 beta2. You'll likely have more luck on qt-interest than on this list. -- Warwick ___ Qt-qml mailing list Qt-qml@trolltech

Re: [Qt-qml] enumerations in QML

2010-08-05 Thread alan.westbrook
On Aug 5, 2010, at 12:10 PM, ext Alex wrote: > On Wed, Aug 4, 2010 at 10:03 PM, wrote: >> On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote: >> >>> Isn't there a way to expose an enum to QML with qRegisterType or something? >>> >> >> If an enum is exposed to Qt's Meta Object system usin

Re: [Qt-qml] Flippable example: some questions

2010-08-05 Thread Eduardo Fleury
Hi Stephen On Thu, Aug 5, 2010 at 11:54 AM, Stephen Collyer wrote: > OK, I see what's going on now. But is this documented ? I can't find > anything in the docs that decribe this behaviour of returning to the > previous state (or does it, in fact, return to the default state, if it has > no > mor

Re: [Qt-qml] enumerations in QML

2010-08-05 Thread Alex
On Wed, Aug 4, 2010 at 10:03 PM, wrote: > On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote: > >> Isn't there a way to expose an enum to QML with qRegisterType or something? >> > > If an enum is exposed to Qt's Meta Object system using Q_ENUMS, the enum is > automatically available to QML.

[Qt-qml] Image Reload

2010-08-05 Thread Michael Dippold
I am using the qml-image element for displaying images accessed over a network. If an image fails for whatever reason I would like to be able to request the image again from the server. Currently I cannot see any clean way to do this. I can append a '?' to the end of the current source and retry

Re: [Qt-qml] Flippable example: some questions

2010-08-05 Thread Stephen Collyer
On 4 August 2010 23:43, Eduardo Fleury wrote: > > > 1) The item enters the "back" state when flipped is true, >> but I can't see anything that should occur when flipped is >> false. > > > Well, when "flipped" is false, the "when" condition for the "back" state > becomes false. > If the Item can

Re: [Qt-qml] enumerations in QML

2010-08-05 Thread Jan Ekholm
On Thursday 05 August 2010 08:03:41 bea@nokia.com wrote: > On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote: > > Isn't there a way to expose an enum to QML with qRegisterType or > > something? > > If an enum is exposed to Qt's Meta Object system using Q_ENUMS, the enum is > automatically

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

2010-08-05 Thread Jan Ekholm
On Thursday 05 August 2010 09:03:36 michael.bras...@nokia.com wrote: > In tests/benchmarks/declarative there is a tool called qmltime that can be > used to profile component creation costs. Running my N900: > > * the original QML tile took 2.13ms to create > * the same tile with the 5 bindings re