-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.0.1
-
None
-
ec26e687f442ecb24d5e356d5563c1ae3b469e52
Vertical center anchor and right anchor can't be used at same time as that described in Help "Creating a Qt Quick Application":
"In Layout, select the vertical center anchor button and then the right anchor button to anchor the rectangle to the middle right margin of the screen."
If I select "right anchor" then "vertical" is deselected and vice versa.
If I push the vertical anchor button it is calling setRightAnchor!
void QmlAnchorBindingProxy::setRightAnchor(bool anchor)
{
if (!m_qmlItemNode.hasNodeParent())
return;
if (rightAnchored() == anchor)
return;
RewriterTransaction transaction = m_qmlItemNode.modelNode().view()->beginRewriterTransaction(QByteArrayLiteral("QmlAnchorBindingProxy::setRightAnchor"));
if (!anchor) {
removeRightAnchor(); <<< HERE
} else {
if (m_rightTarget.modelNode() == m_qmlItemNode.modelNode().parentProperty().parentModelNode()) {
m_relativeRightTarget = SameEdge;
} else {
m_relativeRightTarget = OppositeEdge;
}
anchorRight();
if (leftAnchored())
backupPropertyAndRemove(modelNode(), "width");
}
emit relativeAnchorTargetRightChanged();
emit rightAnchorChanged();
if (hasAnchors() != anchor)
emit anchorsChanged();
}
- relates to
-
QTCREATORBUG-12610 Unexpected reset of VerticalCenterAnchor button in Qt Quick Designer
-
- Closed
-