PlasmaCore::Dialog and QQuickRenderControl

Martin Gräßlin mgraesslin at kde.org
Thu Dec 11 12:59:24 UTC 2014


On Thursday 11 December 2014 13:51:06 Marco Martin wrote:
> On Thursday 11 December 2014, Martin Gräßlin wrote:
> > Unfortunately one can only use the QQuickRenderControl if one creates the
> > QQuickWindow with the ctor taking a QQuickRenderControl* argument. So for
> > all cases where a PlasmaCore.Dialog is instantiated in QML this cannot
> > work.
> 
> you mean it would still be possible to use qwindows as dialogs, but just
> create them in a different way?

yes

> 
> > Any ideas how we could solve this problem? Could we make Dialog wrapping a
> > QQuickWindow instead of inheriting it? Or are there better solutions?
> 
> this may work, but could be a bit problematic since i guess a lot of qml
> code expects it to expose the full qquickwindow api/properties, that would
> all have to be wrapped

That's what I would fear, too. It's certainly a lot of work and rather 
dangerous (hell we know all the problems dialog had)

Cheers
Martin


More information about the Plasma-devel mailing list