[Qt-interest] Some questions about QML

kai.koehne at nokia.com kai.koehne at nokia.com
Tue Nov 3 13:17:10 CET 2009


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




More information about the Qt-interest-old mailing list