Re: [Qt-qml] Accessing a QAbstractItemModel in QML outside a view

2010-12-01 Thread Jan Ekholm
: list.currentItem.data.name } BR, Martin. -Original Message- From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Jan Ekholm Sent: Wednesday, 1 December 2010 4:55 PM To: qt-qml@trolltech.com Subject: [Qt-qml] Accessing a QAbstractItemModel in QML

[Qt-qml] Accessing a QAbstractItemModel in QML outside a view

2010-11-30 Thread Jan Ekholm
to actually access it makes it all feel somewhat silly. I can make extra methods on my subclassed QAIM on the C++ side to get data, but the point is that I should not have to do that, it ought to just work. Someone please give me some RTFM resource. Best regards, Jan Ekholm -- Jan Ekholm

Re: [Qt-qml] Modal dialogs in QML?

2010-11-24 Thread Jan
Rectangle disabling (attached to) all Mouseareas in child items (except the dlg's) if the dialog is visible. Jan Am 24.11.2010 05:35, schrieb Bart Kelsey: Greets! Is there any way to create a modal dialog in QML, such that mouse input outside of the dialog box is blocked? I've tried making

Re: [Qt-qml] Dynamically created items and properties

2010-08-24 Thread Jan Ekholm
this hard to copy instructions verbatim and get them right, then the whole workaround kludge setup is already way too complex. I'll leave the errors as they are and put this down to can't be done with QML yet and look at it later when the rest is done. -- Jan Ekholm jan.ekh...@smultron.net

Re: [Qt-qml] setting QDeclarative view using UI file of Qt

2010-08-24 Thread Jan Ekholm
On Tuesday 24 August 2010 13:02:47 Kumar vaibhav wrote: ...vaibhav.qml... import Qt 4.7 Rectangle { width: 640 height: 480 MouseArea { id: mouse_area1 anchors.fill: parent onClicked:

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: [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-03 Thread Jan Ekholm
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: http://bitbucket.org/gregschlom/qml-drag-drop (and more specifically

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: http

[Qt-qml] QDeclarativeItem subclasses and mouse events

2010-08-02 Thread Jan Ekholm
missing here? I've looked through all the demos and examples, but none of the C++ items are interactive that I can see. Any hints as to where my failure to grok stuff would be? Kind regards, Jan Ekholm -- Five exclamation marks, the sure sign of an insane mind

Re: [Qt-qml] Dynamically created items and properties

2010-07-26 Thread Jan Ekholm
I tried to change the Unit item to really, really bind to the C++ properties using this change: Item { function createUnits (component) { if ( component.status == Component.Ready ) { // get all units, this is a C++ list of Unit* var unit_list =

[Qt-qml] Dynamically created items and properties

2010-07-25 Thread Jan Ekholm
ugly kludge that should fall into the 12th layer of hell.] Best regards, Jan Ekholm -- He says gods like to see an atheist around. Gives them something to aim at. -- Terry Pratchett, Small Gods ___ Qt

[Qt-qml] Changes to how QML files can import other QML files?

2010-07-22 Thread Jan Ekholm
to let everything stabilize before trying QML for real apps? Kind regards, Jan Ekholm -- Pets are always a great help in times of stress. And in times of starvation too, o'course. -- Terry Pratchett, Small Gods

Re: [Qt-qml] Audio and Video

2010-05-23 Thread Jan Ekholm
On Thursday 20 May 2010 10:41:56 kai.koe...@nokia.com wrote: qt-qml-boun...@trolltech.com wrote: defaultServiceProvider::requestService(): no service found for -com.nokia.qt.mediaplayer My Qt version is 4.7 Beta1 My best advice for you is to try downloading the Qt APIs for Mobile