[Interest] How to show Qt Quick 2 scene on widget?
Samuel Rødal
samuel.rodal at digia.com
Wed Oct 3 11:50:38 CEST 2012
On 10/03/2012 11:29 AM, Oleg Shparber wrote:
> See QQuickView - http://doc-snapshot.qt-project.org/5.0/qquickview.html
>
> On Wed, Oct 3, 2012 at 7:54 AM, Alexander Akulich
> <akulichalexander at gmail.com <mailto:akulichalexander at gmail.com>> wrote:
>
> Hi all.
> Is there any replacement for QDeclarativeView in Qt5? If not, is it
> planned in future releases?
> How to port large Qt4 widget-based application with few Qt Quick
> scene and use Qt Quick 2?
For now you'll need to create your own QWidget that creates a QQuickView
as a child of the QWidget or top level window's windowHandle(). The
resizeEvent() etc should position the QQuickView based on the QWidgets
geometry. Not sure if event forwarding is necessary or if the QQuickView
will automatically get the events.
Hopefully something like this (a class QWindowProxy or similar
inheriting QWidget) can become a part of the API at some point.
--
Samuel
More information about the Interest
mailing list