QmlPuppet: Hide 3D edit view render window

Rendering is now done using QRhi private API and QQuickRenderControl.

In addition, input event handling was changed to use sendEvent instead
of postEvent for our fake mouse events, as mouse event position
gets corrupted somehow if event is handled asynchronously when the
window is hidden.

Change-Id: Ia2466622cd4b60e3f73e0ad3e7e4da7c7c335451
Fixes: QDS-3125
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2020-11-17 17:56:45 +02:00
parent a0dd5d2b4f
commit ae15780f84
5 changed files with 492 additions and 201 deletions

View File

@@ -50,11 +50,8 @@ Item {
view.destroy();
}
function createViewForObject(obj, w, h)
function createViewForObject(obj)
{
width = w;
height = h;
if (obj instanceof Material)
createViewForMaterial(obj);
else if (obj instanceof Model)