[Development] AplicationWindow, QQuickWindow, contentRotation and setting width and height of contentItem
Tomasz Olszak
olszak.tomasz at gmail.com
Fri Aug 2 20:49:58 CEST 2013
>
> You should also be able to work around it inside your
> ApplicationWindow by hiding the parent property on your content item.
> Something like "property Item parent: null" should make it look like
> the root of the tree. It's not great, but you actually want to pretend
> to be the root of the tree (it's not just a ModalPopupBehavior hack).
>
> Right it solves more issues, but modals are most common. Unfortunately i
will not work. When I declared such property I got:
Cannot override FINAL property
> The other workaround that comes to mind is to define your
> ApplicationWindow in C++ by subclassing QQuickWindow.h and
> implementing your own contentItem which does include the rotation
> behavior.
>
I very would like to use ApplicationWindow from QtQuick.Controls module so
I would rather not to do that.
> Would either approach be sufficient for your needs?
>
Because of above, either ApplicationWindow will be moved to C++ or another
solution will be found or idea of reusing ApplicationWindow dropped.
Didn't you consider such case that certain Item could be declared as quasi
root of the tree?
Jens correct me if I am wrong but it can be necessary when support of
ApplicationWindow styling will be added.
--
regards,
Tomasz Olszak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130802/d506e258/attachment.html>
More information about the Development
mailing list