On Mon, Aug 4, 2014 at 1:53 PM, rap <r...@dlc.fi> wrote: > From: Ian Monroe > > > On Mon, Aug 4, 2014 at 12:32 PM, rap <r...@dlc.fi> wrote: >>> >>> Why do you want to use QWindow if you are using QWidget-based windows? >>>> >>>> QGLWidget seems like the correct solution. >>> >>> >>> >>> Your question arises a question of the purpose and usefulness of QWindow >>> class regarding opengl if you can not easily create UI controls to go >>> with >>> it, at least in a SDI application. I'll check how things turn out with >>> MDI >>> and QWindow for child wnds. > > >> Sure you can create UI controls with QWindow, just use QML and Qt >> Quick Controls.You could do your own OpenGL stuff by subclassing >> QQuickItem. That's what QWindow is for. It's not meant to be poor >> replacement for QGLWidget. > > >> Ian > > > OK, I'm not familiar with QML & QtQuick at all yet, only quite recently > started using Qt as an alternative for MS. If those support OpenGL core > profile 4+ then I'll have to take a look when I have the time, for now I > have to stick with Qt Creator.
So the context is that QtWidgets (QWidget, QMainWindow etc) are the traditional but still fine-to-use UI component technology, and QML is the newer tech. The QML tech stack includes QWindow; QtWidgets doesn't really. You can mix QtWidgets and QWindow/QML (with that createContainerWidget method or QQuickWidget), but you shouldn't unless you have a reason to, and it sounds like you don't. If you want to use QtWidgets then you should probably just use QGLWidget. Ian _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest