[Qt-qml] FocusScope and Positioning
jerome.pasion at nokia.com
jerome.pasion at nokia.com
Tue Nov 9 09:28:19 CET 2010
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.
More information about the Qt-qml
mailing list