Re: [Qt-qml] How to simulate mouse event

2010-12-13 Thread martin.jones
Yes, that makes sense. QGraphicsView uses the press event to determine which item will get subsequent mouse events. BR, Martin. From: Wangbing Kevin (Nokia-MS/Beijing) Sent: Tuesday, 14 December 2010 4:52 PM To: Jones Martin (Nokia-MS-Qt/Brisbane); qt-qml@trolltech.com Subject: RE: How to simul

Re: [Qt-qml] How to simulate mouse event

2010-12-13 Thread martin.jones
We handle mouse release in our tests without any problem. Are you able to provide a runable example? BR, Martin. From: Wangbing Kevin (Nokia-MS/Beijing) Sent: Tuesday, 14 December 2010 2:19 PM To: Jones Martin (Nokia-MS-Qt/Brisbane); qt-qml@trolltech.com Subject: RE: How to simulate mouse event

Re: [Qt-qml] How to simulate mouse event

2010-12-13 Thread martin.jones
We do this in the MouseArea autotests: QGraphicsScene *scene = canvas->scene(); QGraphicsSceneMouseEvent pressEvent(QEvent::GraphicsSceneMousePress); pressEvent.setScenePos(QPointF(100, 100)); pressEvent.setButton(Qt::LeftButton); pressEvent.setButtons(Qt::LeftButton); QApp

Re: [Qt-qml] PathView Delegates Not Always Displaying

2010-12-09 Thread martin.jones
This one I can reproduce. I've reopened the bug. http://bugreports.qt.nokia.com/browse/QTBUG-15926 Thanks, Martin. > -Original Message- > From: ext Michael Dippold [mailto:m...@dippold.com] > Sent: Friday, 10 December 2010 2:30 AM > To: Jones Martin (Nokia-MS-Qt/Brisbane) > Cc: qt-qml@

Re: [Qt-qml] How to ignore MouseArea signals

2010-12-09 Thread martin.jones
This behavior is inherited from QGraphicsView. I don't know why it is this way. Perhaps the QGraphicsView documentation has some hints. BR, Martin. > -Original Message- > From: ext Adriano Rezende [mailto:adriano.reze...@openbossa.org] > Sent: Friday, 10 December 2010 12:02 AM > To: Pa

Re: [Qt-qml] How to ignore MouseArea signals

2010-12-07 Thread martin.jones
Log a bug. It would be good if you could suggest where the docs are lacking - i.e. where you started looking when this didn't work as expected. The "accepted" behavior is documented in the MouseArea signal documentation. BR, Martin. > -Original Message- > From: ext Halton Huo [mailto:

Re: [Qt-qml] How to ignore MouseArea signals

2010-12-07 Thread martin.jones
You need to accept in onPressed. accepted is ignored for any other event. BR, Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On > Behalf Of ext Halton Huo > Sent: Wednesday, 8 December 2010 11:42 AM > To: Adriano Rezende > Cc: qt

Re: [Qt-qml] PathView Delegates Not Always Displaying

2010-12-07 Thread martin.jones
This is not reproducible using the current Qt 4.7 branch. The 4.7 branch from http://qt.gitorious.org/qt should always build and run. BR, Martin. > -Original Message- > From: ext Michael Dippold [mailto:m...@dippold.com] > Sent: Wednesday, 8 December 2010 2:55 AM > To: Jones Martin (Nok

Re: [Qt-qml] PathView Delegates Not Always Displaying

2010-12-06 Thread martin.jones
Which version of Qt are you using? There have been some fixes in PathView which your bug may be related to. I suggest trying the latest qt/4.7 from git. If you still see the problem then file a bug with an example that can be used to reproduce it (an unreliable example is better than none). B

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

2010-11-30 Thread martin.jones
Right now if you want to access data in your model in script, you will need to add methods to your model to allow that. For the specific case of showing data from the currentItem, you can expose the model data, e.g. ListView { Id: list delegate: Text { property variant data: mod

Re: [Qt-qml] How to expose widget to QML

2010-11-30 Thread martin.jones
You may be able to do this via QGraphicsProxyWidget, but as the documentation states: "This class is provided for convenience when bridging QWidgets and QGraphicsItems, it should not be used for high-performance scenarios". If you are able then it is better to port the widget's functionality to

Re: [Qt-qml] Flickable visibleArea.widthRatio behavior change?

2010-11-28 Thread martin.jones
There was no deliberate change and the examples/declarative/ui-components/scrollbar example appears to behave correctly. Can you provide an example of the problem? BR, Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On > Behalf O

Re: [Qt-qml] work with folder property on FolderListModel

2010-11-28 Thread martin.jones
The documentation should be sufficient. If it is not then that is a bug. BR, Martin From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Thomas PABST Sent: Friday, 26 November 2010 1:05 AM To: qt-qml@trolltech.com Subject: Re: [Qt-qml] work with folder proper

Re: [Qt-qml] work with folder property on FolderListModel

2010-11-24 Thread martin.jones
The parent folder is easy to get, since there is a parentFolder property. There is no way to get a directory in the current folder, short of using the model in a repeater, for example. FolderListModel is quite simple and really only designed to allow selecting a file from a list. You could ad

Re: [Qt-qml] QML dynamic loading a memory string?

2010-11-24 Thread martin.jones
Unfortunately there is no easy way to add setData() to QDeclarativeView. You'll probably have to make your own QGraphicsView subclass, since QDeclarativeViewPrivate is not exported. You can create an object from a QML string using Qt.createQmlObject(string qml, object parent, string filepath)

Re: [Qt-qml] C++ MyClass to detect child added/removed from QML

2010-11-22 Thread martin.jones
QGraphicsItem::itemChange() may do what you want: http://doc.qt.nokia.com/4.7-snapshot/qgraphicsitem.html#itemChange Martin. From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Charley Bay Sent: Tuesday, 23 November 2010 12:51 PM To: qt-qml@trolltech.com Su

Re: [Qt-qml] FolderListModel

2010-11-22 Thread martin.jones
The ListView has no height so only one delegate is created. Add anchors.fill: parent to the ListView. BR, Martin. From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Thomas PABST Sent: Tuesday, 23 November 2010 1:19 AM To: qt-qml@trolltech.com Subject: [Qt

Re: [Qt-qml] ListView footer positioning

2010-11-17 Thread martin.jones
There is no way to position the footer manually. If it is appearing anywhere but directly after the last item it is a bug. I think you'll need to work out how it is being triggered and log a bug. BR, Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun

Re: [Qt-qml] ListView's childrenRect

2010-11-17 Thread martin.jones
This will not work, or worse, has undefined behavior. ListView does not instantiate all of its elements - only those that are needed to fill the visible area of the view. If you define the view's height to be the height of its children, but the number of children needed depends upon the height

Re: [Qt-qml] ListView header and footer behavior

2010-11-11 Thread martin.jones
Definitely a bug. Please report at http://bugreports.qt.nokia.com Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On > Behalf Of ext Johannes P > Sent: Thursday, 11 November 2010 11:18 PM > To: qt-qml@trolltech.com > Subject: [Qt-qm

Re: [Qt-qml] MapPolyline

2010-11-10 Thread martin.jones
Hi Sampo, This sounds like a bug to me, so I suggest logging a bug on http://bugreports.qt.nokia.com You may get more help on the qt-mobility-feedb...@trolltech.com mailing list. Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On

Re: [Qt-qml] QtQuick not installed

2010-11-08 Thread martin.jones
QtQuick 1.0 starts with Qt 4.7.1 (to be released soon). Use import Qt 4.7 until then. Martin. From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Mark S. Townsley Sent: Tuesday, 9 November 2010 10:39 AM To: qt-qml@trolltech.com Subject: [Qt-qml] QtQuick no

Re: [Qt-qml] How to spawn N8 Apps from within QML?

2010-11-08 Thread martin.jones
So who will add the suggestion? Martin. From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Charley Bay Sent: Tuesday, 9 November 2010 7:05 AM To: Niels Mayer Cc: qt-qml@trolltech.com; Ratcliff Andrew (Nokia-MS/Oulu) Subject: Re: [Qt-qml] How to spawn N8 Ap

Re: [Qt-qml] Change property of dynamically created component

2010-11-08 Thread martin.jones
There's nothing wrong with this in concept. Could you provide a small self-contained example of what you've tried? Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On > Behalf Of Ji Shiping (Nokia-MS/Espoo) > Sent: Tuesday, 9 Novemb

Re: [Qt-qml] Animation events

2010-09-25 Thread martin.jones
Only properties in the root item of a component are accessible, so you need to expose mainAnimation via an alias, for example: Rectangle { id: redRect property alias animation: mainAnimation SequentialAnimation { id: mainAnimation } } Martin. __

Re: [Qt-qml] emit data on a QAbstracListModel does not update the QML ListView.

2010-09-18 Thread martin.jones
It may be a combination of this change and others. There have been a number of changes to this code since the rc was released. If you still see QTBUG-13628 I'd suggest getting the qt 4.7 branch from gitorious. If you have problems after that let me know and I'll reopen it. Martin. _

Re: [Qt-qml] Avoid binding warnings on object creation

2010-09-03 Thread martin.jones
I'm planning to push it to 4.7 on Monday. Martin. From: qt-qml-boun...@trolltech.com [qt-qml-boun...@trolltech.com] On Behalf Of Cunha Leo (Nokia-MS-Qt/Oslo) Sent: Friday, 3 September 2010 8:13 PM To: qt-qml@trolltech.com Subject: Re: [Qt-qml] Avoid bindi

Re: [Qt-qml] Avoid binding warnings on object creation

2010-09-02 Thread martin.jones
This is a bug. The attached patch fixes it. BR, Martin. -Original Message- From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Adriano Rezende Sent: Friday, 3 September 2010 3:01 AM To: Cunha Leo (Nokia-MS-Qt/Oslo) Cc: qt-qml@trolltech.com Subject:

Re: [Qt-qml] Antialiasing

2010-08-04 Thread martin.jones
smooth: true Martin. From: qt-qml-boun...@trolltech.com [qt-qml-boun...@trolltech.com] On Behalf Of ext Shady Zayat [sh...@zoogylabs.com] Sent: Wednesday, 4 August 2010 7:23 PM To: qt-qml@trolltech.com Subject: [Qt-qml] Antialiasing Is there a was to enab

Re: [Qt-qml] "GestureArea is not a type" plugin error on Windows

2010-05-06 Thread martin.jones
Gestures are not built by default. Once I had Qt built, I did: cd src\imports\gestures nmake And the following files were placed in imports\Qt\labs\gestures (I built both release and debug) gesturesqmlplugin.dll gesturesqmlplugin.exp gesturesqmlplugin.lib gesturesqmlplugind.dll gesturesqmlplug