[Qt-qml] Removal of QML effects

henrik.hartz at nokia.com henrik.hartz at nokia.com
Thu Apr 29 16:36:25 CEST 2010


/me learns to read emails twice before replying

On Apr 29, 2010, at 4:35 PM, Hartz Henrik (Nokia-D-Qt/Oslo) wrote:

> Is it possible to enable the (slow) effects for platforms that have ample computing power (read: desktops) via modules?
> 
> Henrik
> 
> On Apr 29, 2010, at 8:07 AM, ext michael.brasser at nokia.com wrote:
> 
>> Hi,
>> 
>> Last week I submitted a change that removed the QML bindings for the QGraphicsEffects. The reason for this was primarily performance -- although we've done several rounds of optimization they still aren't at a point where we felt we could give reasonable performance guarantees. We are planning to reintroduce effects in a later release, after we've had time to address the performance issues.
>> 
>> An example showing how to use a BorderImage for drop shadow effects should be showing up in the 4.7 branch soon, and the plan is to add additional examples showing how to simulate some common UI effects at low cost using the existing QML elements.
>> 
>> 'effect' is still a property of QGraphicsObject, so it is still possible (and quite easy) to register and use the effects yourself if necessary:
>> 
>> qmlRegisterType<QGraphicsBlurEffect>("Effects",1,0,"Blur");
>> qmlRegisterType<QGraphicsColorizeEffect>("Effects",1,0,"Colorize");
>> qmlRegisterType<QGraphicsDropShadowEffect>("Effects",1,0,"DropShadow");
>> qmlRegisterType<QGraphicsOpacityEffect>("Effects",1,0,"Opacity");
>> 
>> Regards,
>> Michael
>> _______________________________________________
>> Qt-qml mailing list
>> Qt-qml at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-qml
> 
> 
> /*
> Henrik Hartz, Senior Qt Product Manager
> Qt Development, Nokia
> */
> 


/*
Henrik Hartz, Senior Qt Product Manager
Qt Development, Nokia
*/





More information about the Qt-qml mailing list