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

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

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:

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:

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

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).

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

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

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 Of

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] 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

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:

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

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

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-qml]

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] 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 November

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

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