[Qt-interest] A couple of questions about QML

Thiago Macieira thiago at kde.org
Sun Jan 17 20:07:22 CET 2010


Em Domingo 17. Janeiro 2010, às 19.55.15, Bob Hood escreveu:
> I'm not actually using QML at the moment, but after getting about
> half-way through the docs, I have a couple of questions.

Hi Bob

I can't answer all your questions. Let me see what I can answer:

> First, before QML was introduced, I've seen custom Qt-based interfaces
> (i.e., custom controls, like dial-knobs and equalizer sliders).  Are
> those controls created using straight C++, or are they using some
> Qt-based tech that QML is designed to replace?

They're all implemented in C++. Depending on the control, much of it is 
implemented actually in the style, which is a C++ class deriving from QStyle 
and implementing the look-and-feel. On Windows, Mac and Symbian, it tries to 
use the platform functions to obtain the look of the platform.

> Second, if I write a stand-alone Qt-based C++ application that leverages
> QML for its UI, can the QML elements (*.qml, *.js, etc.) be distributed
> along with the application in such a form that they cannot be modified
> by the end user?  Compiled into binary form, perhaps, or embedded as Qt
> resources?

Yes, they can. You can also download any updates from the network.


-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100117/0a4f7d52/attachment.bin 


More information about the Qt-interest-old mailing list