[Qt-interest] Some questions about QML
Jabot Corentin
corentin.jabot at gmail.com
Tue Nov 3 14:28:35 CET 2009
---------- Forwarded message ----------
From: Jabot Corentin <corentin.jabot at gmail.com>
Date: 2009/11/3
Subject: Re: [Qt-interest] Some questions about QML
To: kai.koehne at nokia.com
Thanks for your answer.
About memory, I made new test and that just consume 7Mo RAM and that sound
reasonable for what I want to do.
(its a qml view with 2 qml Images components loading one 200ko png
About qml/c++ interactions :
I have a qml UI with many buttons: How can I call c++ treatments when I
click on those buttons ?
I project to design an application where the UI is in QML (so I can change
the UI look and fell easily) and the core features are in c++ .
How I'm suppose to achieve that ?
About security :
Suppose I declare a password field in a qml UI. If someone modify this qml
and load a resource with a url like
http://foo.com/?password={<http://foo.com/?password=%7B>content of the
password field } and the distribute It to users, there will
be a lot of account hacking...that's could be a problem ! So, is there
solutions to avoid that ?
Thanks !
(My English certainly sound quite ugly. Please Excuse the french guy I'm
about that )
2009/11/3 <kai.koehne at nokia.com>
qt-interest-bounces at trolltech.com wrote:
> > Hi guys.
>
> Hi,
>
> > I built my first QML application yesterday, using the git sources
> > repository. Inside a transparent widow, I put a transparent QMlView in
> > which I load a simple qml file In order to reproduce an UI
> > that I have already done with standard Qt widgets.
> > I compare the to applications. The one with the standards
> > widget takes 1 Mo RAM and the one with the QMlView and the
> > qml file 16Mo... does that is normal or going to be fixed ?
>
> Without more details I am afraid it is a bit hard to say. What Items did
> you use? Did you load images?
>
> > My purpose is to build UI with QML and treatment with c++
> > native code. It will be great if we could expose whole object
> > to qml as we can for the ecma scripts and use the signals/slots !
>
> Well, Qml can contain JavaScript snippets. But the 'declarative' parts is
> built around properties.
>
> > My last question is about network and security. Can we
> > disable network download from web site (except predefined
> > trusted domains for example ?)
>
> I'm not sure what exactly you want to disable. AFAIK there is no easy way
> to disable the loading of e.g. images from an absolute URL (though you can
> probably easily achieve this from the C++ side). Qml components are only
> loaded remotely from the same location you retrieved the original file from.
>
> Regards
>
> Kai
>
> --
> Kai Köhne
> Software Engineer
> Nokia, Qt Development Frameworks
>
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091103/74dee76e/attachment.html
More information about the Qt-interest-old
mailing list