[Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-23 Thread Fabrice Salvaire
Dear all, I am experimenting a way to implement a wizard interface featuring a next and previous page navigation using QtQuick Controls 2. I tried to achieve this using StackView but I receive the error "TypeError: Type error' when I try to access popped items later, for example using

Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-23 Thread Jason H
I would certainly hope so as I've written apps to dynamically manage the stackview and any user using the app for a few iterations would likely run out of memory.   Note that memory mangement in QML is voodoo, and as a result, the actual destruction is not deterministic. If you need to access

Re: [Interest] qml or qwidget

2018-02-23 Thread Jérôme Godbout
What you are looking for is rendering to framebuffer, this make a custom painting for the item (all Qml Item are OpenGL based for now under the hood). All you need to do is a view Qml Item that render your framebuffer as a texture (your Qml viewport of some sort). What you just link is putting

Re: [Interest] qml or qwidget

2018-02-23 Thread Alexandre Ribeiro
The approach I followed to render OpenGL was this one: http://blog.qt.io/blog/2015/05/11/integrating-custom-op engl-rendering-with-qt-quick-via-qquickframebufferobject/ I did it this way because I wanted to have my own QQuickItem that I could easily instantiate in Qml. My 3D application has a

Re: [Interest] qml or qwidget

2018-02-23 Thread Sylvain Pointeau
Hi, On Thu, Feb 22, 2018 at 4:42 PM, Alexandre Ribeiro < alexandregomesribe...@gmail.com> wrote: > I'm using Qt Quick 2 with an in house 3D engine for a desktop application > and I've been getting great results. > > My clients actually required that we used an UI that wasn't native and > that

Re: [Interest] qml or qwidget

2018-02-23 Thread Sylvain Pointeau
Hi, On Thu, Feb 22, 2018 at 2:54 PM, Jérôme Godbout wrote: > For OpenGL, you might want to take a look at Qt3D if it suit your need. > Either can easily do the OpenGl part if you render to a texture and fill > the widgets or item painting with it. > > > I for one would go

Re: [Interest] qml or qwidget

2018-02-23 Thread Sean Harmer
Hi, widgets or QML depends upon what type of application you want to build and how you want the UI to look. Both widgets and QML are capable of housing OpenGL content. Do you have a screenshot/mockup of the type of UI you are after please? I agree that Qt 3D is not wise at this stage if you