<div dir="ltr">Cheers, i'd done all that but missed the achors.centreIn!!!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 6:19 AM, Gunnar Sletta <span dir="ltr"><<a href="mailto:gunnar@sletta.org" target="_blank">gunnar@sletta.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 01 Oct 2014, at 22:22, Adam Pigg <<a href="mailto:adam@piggz.co.uk">adam@piggz.co.uk</a>> wrote:<br>
<br>
> Hi<br>
><br>
> Is is possible to force an application into landscape orientation, when only using a plain QQuickWindow and QML/QtQuick2 without using silica components/applications/pages?<br>
><br>
> Ive tried creating a sub item of my root item that is rotated 90 degrees but it ends up being offset, and I feel it should be easier!<br>
><br>
> Cheers<br>
><br>
> Adam<br>
<br>
</div></div>This should do the trick:<br>
<br>
Item {<br>
id: root<br>
<br>
width: 540<br>
height: 960<br>
<br>
Item {<br>
id: contentRoot<br>
width: parent.height<br>
height: parent.width<br>
anchors.centerIn: parent<br>
rotation: 90<br>
<br>
ApplicationGoesHere {<br>
...<br>
}<br>
}<br>
}<br>
<br>
cheers,<br>
Gunnar<br>
<br>
<a href="http://www.sletta.org" target="_blank">www.sletta.org</a><br>
> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br>
> To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
</blockquote></div><br></div>