Hi Jerome,

FocusScope is considered a visual element (like Item, it is a visual element 
that doesn't actually draw anything) with a geometry, so it needs an explicit 
size (e.g. binding its size to its children's size) to work properly within a 
layout. It certainly wouldn't hurt to make that more explicit in the docs -- is 
that something you are happy to do along with your other revisions in this area?

Regards,
Michael

On 09/11/2010, at 6:28 PM, ext jerome.pas...@nokia.com wrote:

> Hello,
> 
> I am revising the focus document and I noticed something unexpected.
> Here is a sample code:
> 
> import QtQuick 1.0
> 
> Rectangle {
>    width: 200; height: 200
> 
>    Column {
>        FocusScope {
>            Rectangle {width: 50; height: 50; color: "blue"}
>        }
> 
>        FocusScope {
>            Rectangle {width: 50; height: 50; color: "red"}
>       }
>    }
> }
> 
> What I would like is to place these two FocusScope on top of each other, 
> instead the rectangles will be in front of each other.
> Removing the FocusScope element will do what I intended, but the addition of 
> a FocusScope doesn't behave as (I, at least) expected.
> 
> This issue might come up when people start wrapping their components in 
> FocusScopes and the element which imports these components may
> not be aware of these FocusScope behaviors.
> 
> Any workarounds?
> 
> Cheers,
> Jerome P.
> _______________________________________________
> Qt-qml mailing list
> Qt-qml@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml


_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to