Re: [Qt-qml] QML memory usage with "import QtWebKit"

2010-12-09 Thread Gregory Schlomoff
Hi Michael, Somme additional figures: 1. Empty Rectangle, not importing QtWebkit: ~ 3MB 2. Empty Rectangle, importing QtWebkit: ~ 13MB 3. Rectangle with an empty WebView: ~ 14 MB 4. Setting url: "about:blank" in the WebView: ~15 MB 5. Setting url: "http://www.google.com/": ~19 MB (and a repaint b

Re: [Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread bea.lam
And ignore the duplicate 'outerDelegate' id below - that should only be in the Repeater, not the Component. On 10/12/2010, at 3:09 PM, ext bea@nokia.com wrote: > Hi James, > > On 10/12/2010, at 2:20 PM, ext Wei, Xiaohai wrote: > >> Thanks. >> >> another question on nested listview. >>

Re: [Qt-qml] QML memory usage with "import QtWebKit"

2010-12-09 Thread michael.brasser
Hi Greg, >From what I remember 10MB for the "base" usage of webkit sounds about right, >though I didn't realize that just an import statement would add this cost. Did >you try any other configurations? e.g. did adding an empty WebView cause the >memory to go up or was it still around 13MB? Reg

Re: [Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread bea.lam
Hi James, On 10/12/2010, at 2:20 PM, ext Wei, Xiaohai wrote: > Thanks. > > another question on nested listview. > > How can inner delegate get the index of current outer model index? > One way to do it is to add a property to each delegate of the outer view, which holds the 'index' value o

Re: [Qt-qml] aliasing property of a delegate in a listview

2010-12-09 Thread michael.brasser
Hi, The ListView's delegate is really just a template for the list items that will be shown in the view (as Girish pointed out in an earlier thread, delegate: aCustomDelegate {} is really just shorthand for delegate: Component { aCustomDelegate {} }), which is why you cannot create an alias to

Re: [Qt-qml] PathView Performance issue

2010-12-09 Thread michael.brasser
Hi, I would guess that the problem comes from instantiating new items as the path is flicked. If that is the case, the only real solution at this point is to simplify your delegate (see http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeperformance.html#view-delegates). If the data model is rela

Re: [Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread Wei, Xiaohai
Thanks. another question on nested listview. How can inner delegate get the index of current outer model index? Thanks James On Thu, Dec 9, 2010 at 7:11 PM, Chris wrote: > Hi, > > Well, I'm not involved in QML development (just a user), so somebody else > can probably answer this. > > My gue

Re: [Qt-qml] Performance cost of using Loader's sourceComponent

2010-12-09 Thread michael.brasser
On 03/12/2010, at 4:00 AM, ext Adriano Rezende wrote: > On Fri, Oct 22, 2010 at 2:12 AM, wrote: >> On 21/10/2010, at 4:44 AM, ext mathias.malmqv...@nokia.com wrote: >>> Quick question; is there a cost involved in instantiating elements using the >>> Loader's sourceComponent property? I.e. does it

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

2010-12-09 Thread michael.brasser
On 25/11/2010, at 7:25 AM, ext Charley Bay wrote: > This does raise the next question (or two): > > (1) The QML implies an "instantiation tree" of items in a parent-child > relationship. That's great, and part of what makes QML so easy to use. Is > this tree "special" in any way? For example,

Re: [Qt-qml] Participating in QML open source projects

2010-12-09 Thread michael.brasser
On 24/11/2010, at 7:11 AM, ext Viacheslav Dukalskiy wrote: > I would like to participate in some kind of open source QML project, to > bring something useful to the community and learn QML in the same time :). > The main problem I don't know what to start with, what QML community is > and what o

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] PathView Delegates Not Always Displaying

2010-12-09 Thread Michael Dippold
Sorry, I guess I had to upgrade my glib libraries to build the latest. I have now built the latest and it seems to fix part of my issue but I am still having some trouble. With the following example, line 19: carousel.currentIndex = 0; Does not appear to cause the path to redraw the delegates.

[Qt-qml] About possibilities of sharing common parts between the applications

2010-12-09 Thread iiro.kause
Hi, We have been analyzing what is going on with the QML application launches on Symbian side. One thing we have been thinking about was, that perhaps it would be beneficial to share some things between applications. Now, for example, in every application start we're registering all the intern

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

2010-12-09 Thread Adriano Rezende
On Thu, Dec 9, 2010 at 10:36 AM, wrote: > Hello, > > Is there a reason why accepted isn't handled in the other mouse events? I believe the reason is that after accepting mouse press event that item becomes the mouse grabber and mouse move/released events will be delivered directly to it. The gra

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

2010-12-09 Thread jerome.pasion
Hello, Is there a reason why accepted isn't handled in the other mouse events? Cheers, Jerome P. From: qt-qml-boun...@trolltech.com [qt-qml-boun...@trolltech.com] On Behalf Of ext Halton Huo [halton@intel.com] Sent: Wednesday, December 08, 2010 4:40

Re: [Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread Chris
Hi, Well, I'm not involved in QML development (just a user), so somebody else can probably answer this. My guess is that this data type is not supported by QML yet: see http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html#supported-data-types Kr, Chris. On Thu, Dec 9, 2010 at 12:21 PM, Wei, Xiao

Re: [Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread Chris
> > > I used an INVOKABLE method in class A which will return a > QAbstractListModel, and use it as the model of the inner ListView, but it > doesn't work. > > Actually, this works for me. I believe you need to cast the returned model to a QObject* to make it work. For example: Q_INVOKABLE QObject

[Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread Wei, Xiaohai
I need to use nested ListView in QML. In each item of the outer ListView, named by A, it will contain another ListView B. I can easily expose the DataModel for A from C++, but how can I expose the list of DataModel for each B? I have a C++ class derived from QAbstractListModel, and expose an inst

Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-09 Thread Cornelius Hald
On Wed, 2010-12-08 at 16:33 +0200, Juha Turunen wrote: > >> You need to tell the Symbian FBS (font and bitmap server) that it > >> should add your font to the typeface store. You can do that with this > >> bit of code: > >> > >> TInt id; > >> CEikonEnv::Static()->ScreenDevice()->AddFile(_L(

[Qt-qml] PathView Performance issue

2010-12-09 Thread badrinath.chandi
Hi, I am trying to display images using path view, I am finding the performance issues when I use the pathItemCount, any solutions to Fix this issue? Thanks & Regards, Badri ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailma