- Aug 13, 2014
-
-
Laszlo Agocs authored
And make qquickviewcomparison able to demonstrate how to create a partially transparent QQuickWidget. Avoid also recreating the QQuickView/QQuickWidget multiple times when switching between the radio buttons. [ChangeLog] Added QQuickWidget::setClearColor() in order to support semi-transparent QQuickWidgets. Change-Id: I319ad4afbe909530274d09f2a7fcff23730d6ebd Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- Aug 11, 2014
-
-
Laszlo Agocs authored
The enablers are already in. Now we just need to use the virtual in QQuickWidgetPrivate and test it. Task-number: QTBUG-39562 Change-Id: I1faf5a0a244ba4169fb8f9b0dae657304038b60e Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Aug 08, 2014
-
-
Laszlo Agocs authored
Taking the persistent flags from the QQuickWindow was a bad idea. These are not applicable to the case when an application drives the scene via QQuickRenderControl. Once stop() is called, all resources must be released since the context itself will typically be destroyed afterwards. This is a backport of 0b0bb319 in dev. On top of this, stop() becomes invalidate() since the original invalidate() function is never used by anyone. This naming is much cleaner and is consistent with QSGContext and friends. Task-number: QTBUG-40505 Task-number: QTBUG-40435 Change-Id: I398f1bda31f335c3508b238f0328305d3cd79ffd Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Aug 07, 2014
-
-
Laszlo Agocs authored
To be consistent. Change-Id: Ia78bf4a27e8ccb1a4f0a44865e810f1070c39e5d Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Aug 06, 2014
-
-
Laszlo Agocs authored
This corrects two issues: 1. Recreating the fbo twice when the widget is shown. Calling createFramebufferObject() is not necessary in this case since createContext() will trigger this anyhow due to scenegraphInitialized(). 2. Avoid recreating the fbo when the size is the same as before. Some platforms are keen on sending resize events with the same size. These should be ignored. What's worse, some platforms (cocoa) generate a resize on exitting (Cmd-Q) and not ignoring the resize at that stage is dangerous since the scenegraph is already invalidated. Task-number: QTBUG-40505 Change-Id: I21ff418fde449aa15eef4d6593e7a518861fcde1 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Aug 05, 2014
-
-
Jocelyn Turcotte authored
Change-Id: I438c33a1dc83fd0cd1ec08bb4e4a1257a3216ca2 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Jul 07, 2014
-
-
Laszlo Agocs authored
Resizing to an empty size followed by another resize leads to sync() without having the context and the render control intialized. This is wrong. Task-number: QTBUG-39858 Change-Id: I5908723272165a656d192644cceb16ed253e6d3b Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- Jul 01, 2014
-
-
Laszlo Agocs authored
This introduces the need for a grab function in QQuickWidget. The render control has one already so there is no reason for not exposing this in QQuickWidget too. This also means that a relatively meaningful autotest can be now be added. [ChangeLog][QtQuick] Added QQuickWidget::grabFramebuffer() for capturing the content into a QImage. Task-number: QTBUG-37589 Change-Id: I5ca8192c0ef8dab4f076a4db27b64aebe3359bb8 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Jun 24, 2014
-
-
Laszlo Agocs authored
QQuickRenderControl allows rendering Qt Quick 2 scenes into framebuffer objects which can then be used in arbitrary ways in Qt-based or 3rd party OpenGL renderers. [ChangeLog][QtQuick] Introduced QQuickRenderControl as a public API. Task-number: QTBUG-37944 Change-Id: I84262243b261b35cefdf67ec6bba8127a0f29275 Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-
- Jun 13, 2014
-
-
Laszlo Agocs authored
Make text input functional out of the box. Both QGraphicsView and QDeclarativeView (QQuick1) do this so there is no reason to do this differently for QQuickWidget. For QQuickWindow and QQuickView the issue does not exist in the first place, they will accept the focus by default. Task-number: QTBUG-39605 Change-Id: I74f01b85342df51aa3c0e80baf58ba1619c63438 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Jun 10, 2014
-
-
Paul Olav Tvete authored
This is a quick-fix. The real issue is that QWidget and QWindow reacts differently when a QDragEnterEvent is rejected. Change-Id: I3e3e50610c14acfaada9c1b243b88cfe9eae54b2 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Jun 06, 2014
-
-
Laszlo Agocs authored
Use a multisampled fbo when the requested format has samples > 0. Resolving happens after each rendering of the scene. The blit to the temporary non-multisampled fbo could be avoided, in theory, by sending the fbo instead of the texture id down the stack and performing a blit directly to fbo #0. This however involves a number of potential issues, for example due to the non-sharability of FBOs between contexts. Hence it is left as a future exercise. Task-number: QTBUG-39187 Change-Id: Iae98b969bcbc3bb57e6d73288496f5428913c826 Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Jun 05, 2014
-
-
Laszlo Agocs authored
Create the QOffscreenSurface together with, and after, the QOpenGLContext. This is essential to get a surface that is compatible with the context and is in line with the QOffscreenSurface usage recommendation from the docs. Otherwise, if the offscreen surface gets created first, without knowing what _actual_ format (e.g. EGL configuration) the context will use, the result is an incompatible surface and context on systems that offer a different set of configurations for window and pbuffer surfaces. This fixes QQuickWidget on EGL implementations that offer both 16 and 24 bit pbuffer configs, but only 24 (or 32) bit window configs. Task-number: QTBUG-39474 Change-Id: I43925d2b25e28d26d172ce9d22651c25b281b832 Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-
Laszlo Agocs authored
This is not supported. Change-Id: I19ed485ee629baa4f3631770ab0c730e0ef6748e Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-
- Jun 03, 2014
-
-
Paul Olav Tvete authored
QQuickRenderControl needs a QQuickWindow in order to function. This required the use of a private QQuickWindow constructor, meaning that only friend classes of QQuickWindow could use QQuickRenderControl. This change adds a factory function, QQuickRenderControl::createOffscreenWindow(). Task-number: QTBUG-38996 Change-Id: I92f6f1f60045934f3dd33c300352247852463c73 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
Laszlo Agocs authored
When creating the new FBO, it will try to restore the previous FBO after initialization. The internal tracking of the current FBO goes horribly wrong when a QOpenGLFramebufferObject is destroyed with no context current. In 5.4 the problem is solved by removing the tracking altogether. Here QQuickWidget is fixed to play nice and destroy QOpenGLFramebufferObject always with the context current. Task-number: QTBUG-39389 Change-Id: Ic6917696ed61f284d661a578c9c7f2e0673c412d Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
Laszlo Agocs authored
Make sure the context/surface are still alive and current while destroying the render control. Task-number: QTBUG-39034 Change-Id: I6ff0069985a9121a63025bfb165493b3f003391d Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- May 27, 2014
-
-
Paul Olav Tvete authored
Relay drag/drop events to the offscreen QQuickWindow. Task-number: QTBUG-39167 Change-Id: Iaf59fb899d16ac96fc94f1df8c3a939e9bd0f92f Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- May 23, 2014
-
-
Laszlo Agocs authored
Change-Id: I9b8673fb3292c9d5ad2f9e8e63f56dc661699be6 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com>
-
- May 21, 2014
-
-
Paul Olav Tvete authored
If the platform plugin does not support the features needed for QQuickWidget, then don't try to use it. This is a minimal change to stop applications from crashing: it does not give the application a way to find out if QQuickWidget is supported, since that would mean new API, which we can't do in a patch release. Task-number: QTBUG-38268 Change-Id: I975a03b105b1d5c21a1d8ae440a5802ce8c1967b Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
Paul Olav Tvete authored
Relay focus in/out events to the offscreen QQuickWindow, and also make the offscreen window believe it has the focus when the render window has it. Task-number: QTBUG-39033 Change-Id: Ib50b134e635833ad3813693ca272f04607c525b8 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Apr 25, 2014
-
-
Laszlo Agocs authored
Task-number: QTBUG-38564 Change-Id: Ice1170339f7d650fcb6accfccf325471629343d6 Reviewed-by:
Sean Harmer <sean.harmer@kdab.com>
-
- Apr 24, 2014
-
-
Paul Olav Tvete authored
When using a QQuickWidget, the QQuickWindow is hidden and the contents are displayed in another window. Some components need to query the actual window, e.g. when positioning a popup. Task-number: QTBUG-38116 Change-Id: I34452be2179ccc9e216e4d89264dc700e0cf42a0 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Apr 04, 2014
-
-
Jocelyn Turcotte authored
This removes QSGContext::sharedOpenGLContext and replace its uses with QOpenGLContextPrivate::globalShareContext, which is also going to be used by QOpenGLWidget and QQuickWidget. Change-Id: I1e296c3e6832f717caaf31ba7d7b27c06249219b Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Mar 28, 2014
-
-
Topi Reinio authored
Although the documentation is part of Qt Quick, a separate module page with a \qtvariable command is still needed to have correct information about which module to link against. Task-number: QTBUG-37272 Change-Id: Ie00e9418be4feec299cb36c526ca366504c89008 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Jerome Pasion <jerome.pasion@digia.com> Reviewed-by:
Lars Knoll <lars.knoll@digia.com>
-
- Mar 24, 2014
-
-
Friedemann Kleint authored
Change-Id: I5d4b3e26742202c4b634d0001fd3658c7263c50a Reviewed-by:
Alan Alpert <aalpert@blackberry.com>
-
- Mar 19, 2014
-
-
Paul Olav Tvete authored
There were two problems: 1) QWidget does not have a default size of (0,0) or (1,1), but uses WA_Resized. 2) event() would eat timer events without checking the timerId. Change-Id: I355acbb10d3d5073e117c29de18bb94857881141 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
Morten Johan Sørvig authored
Change-Id: I3cc584e8ff980cd4328639a5e98241713a13cb04 Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-
- Mar 18, 2014
-
-
Laszlo Agocs authored
Change-Id: Id72a042588e37832a0d3757bad935c531ef8275a Reviewed-by:
Jędrzej Nowacki <jedrzej.nowacki@digia.com>
-
- Mar 14, 2014
-
-
Topi Reinio authored
Because QtQuickWidgets is part of Qt Quick module documentation, its examples need to also be moved under the examples/quick directory structure. This change moves the example, creates minimal documentation for it, and adds a link to it from the QQuickWidget class reference. Task-number: QTBUG-37272 Change-Id: Iffb67849f150b9aaf0edaef5852364e93f7752b8 Reviewed-by:
Jerome Pasion <jerome.pasion@digia.com> Reviewed-by:
Lars Knoll <lars.knoll@digia.com>
-
- Mar 13, 2014
-
-
Friedemann Kleint authored
Add QQuickWidget::sceneGraphError() equivalent to QQuickWindow::sceneGraphError(), move message formatting code to QQuickWindowPrivate. Change-Id: I18cd4d7e0f6ee1011c29375218dc6a044b0d2cf2 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Mar 12, 2014
-
-
Paul Olav Tvete authored
forceRendering was introduced for QQuickWidget, but QQuickWidget now has full control of when the rendering functions are called. It makes more sense to not call the QQuickRenderControl functions, than to set a flag on QQuickWidget that decides whether those functions have any effect. Change-Id: I69819b13000120c04cecd1a467c08e8df9330df8 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Mar 11, 2014
-
-
Topi Reinio authored
Fix qdoc warnings, do some editing and cross-link between QQuickWidget and QQuickView class references. Task-number: QTBUG-37272 Change-Id: I48d3a01e7c6315be329e24a5c5f7635697629316 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Jerome Pasion <jerome.pasion@digia.com>
-
- Mar 10, 2014
-
-
Paul Olav Tvete authored
Resizing to an empty size needs to be handled as if the widget was hidden. Restoring to a non-empty size is like a show, except that we are rendering synchronously. Task-number: QTBUG-37046 Change-Id: I572e4763c4a28bfe7347868e109acca5b357db50 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Mar 07, 2014
-
-
Paul Olav Tvete authored
When the toplevel window changes, QQuickWidget needs to recreate the context so it is compatible with the new window. Change-Id: Ic7c3410061a33f223e20e3d1f93437917abcff18 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
Paul Olav Tvete authored
We cannot be sure that the toplevel widget has the correct GL format, and we do not want to force depth and stencil buffers on surfaces that do not need them. Therefore, we have to create an offscreen surface for the FBO. Change-Id: I7dfc3a6f84bf79125f3ab811a204972e95e245a3 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Feb 28, 2014
-
-
Paul Olav Tvete authored
Task-number: QTBUG-37062 Change-Id: I3763385168eaa0ccd009ada563f56ea0251029a5 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- Feb 25, 2014
-
-
Ulf Hermann authored
Task-number: QTBUG-36935 Change-Id: I498561f6bbd5a9b279034d16ef5ae4fb36607ed3 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- Feb 21, 2014
-
-
Laszlo Agocs authored
Change-Id: Idb444cbc62491469230c5a1f624d71cf20bce492 Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-
Laszlo Agocs authored
Change-Id: I34f2015d63d3052b401a82bb4ac7340af94dca8c Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-