[Qt-qml] "Cheating" in startup.qml?

Jason H scorp1us at yahoo.com
Wed Sep 8 20:31:55 CEST 2010


I downloaded the SDK rc1 for 4.7

I wanted to check out the QML stuff, but the QtCreator IDE does not quote the 
script name (as a parameter), so I was going to launch it manually, and take it 
from there.

When I loaded it, I was completely blown away by the included animation. It was 
amazing. Even slowed down. Truly epic stuff! I immediately needed to know how it 
did all that so I loaded up startup.qml, and it was revealed to me. But the 
assets here used quite a few pre-rendered images. I expected the Qt logos to be 
pre-rendered, but the blur and drop shadow stuff was, I thought, doable in QML? 


I'm trying to make a very flexible application using user art resources, and I 
didn't want the user to have to do this kind of thing. Would it be possible to, 
now or in the future have QML create these at run time? (Via serialization to 
disk, or just in-memory?) 



Imagine: 
 Rectangle {  id: rect1
     y: 100; width: 80; height: 80      gradient: Gradient {          
GradientStop { position: 0.0; color: "lightsteelblue" }          GradientStop { 
position: 1.0; color: "blue" }      }  }then calling something like 
export(rect1, "rect1.png") In this way, QML can be used as a compisting engine.

I thought there were Blur, DropShadow, etc, so I guess my question is why were 
they not used?

Also, I would like to alert you to a documentation discrepancy. In QtCreator's 
help under "Qt4.7: QML Elements: Home: QML Elements" the Effects listed are all 
particle effects, and grayed out. The "QML Reference: Home: Elements" page 
however has the full complement listed. It might be just rc-status, but it might 
not.

But I am so excited to be using QML!


      



More information about the Qt-qml mailing list