Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
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

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 04.08.2014 um 23:58 schrieb Ian Monroe i...@monroe.nu: 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

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 10:27 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com: ... That's exactly the magic keyword here, the static method of QWidget::createContainerWidget! That's QWidget::createWindowContainer() to be correct ;) Cheers, Oliver

Re: [Interest] Embedding QWindow

2014-08-05 Thread Filip Piechocki
According to this blog post: http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget never use the QWidget::createWindowContainer() :) use QQuickWidget instead. BR, Filip On Tue, Aug 5, 2014 at 10:31 AM, Till Oliver Knoll till.oliver.kn...@gmail.com wrote: Am 05.08.2014 um 10:27

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 11:27 AM But if I am not mistaken under the hood a QWindow is also used as base for e.g. a QMainWindow. It is just the lowest common and most lightweight denominator for interaction with the underlying window system (which could

Re: [Interest] Embedding QWindow

2014-08-05 Thread Agocs Laszlo
From: interest-bounces+laszlo.agocs=digia@qt-project.org [interest-bounces+laszlo.agocs=digia@qt-project.org] on behalf of rap [r...@dlc.fi] Sent: Tuesday, August 05, 2014 12:09 PM To: Till Oliver Knoll; Qt Project Subject: Re: [Interest] Embedding QWindow From

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 10:48 schrieb Filip Piechocki fpiecho...@gmail.com: According to this blog post: http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget never use the QWidget::createWindowContainer() :) use QQuickWidget instead. Read the fine print: ;) having a QQuickView

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
Thanks, this discussion has been really useful, I haven't found anything written giving the larger picture, just nuts and bolts everywhere. Regarding the idea of using MDI and QWindow for child wnds seems to stumble on the fact that QMdiSubWindow class is a QWidget based class too. There

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 12:09 schrieb rap r...@dlc.fi: From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 11:27 AM But if I am not mistaken under the hood a QWindow is also used as base for e.g. a QMainWindow. ... That don't seem to be the case, QMainWindow inherits from QWidget,

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
OK, got that now ;) Thanks, - Risto From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 2:45 PM Am 05.08.2014 um 12:09 schrieb rap r...@dlc.fi: From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 11:27 AM But if I am not mistaken under the hood a QWindow is also used as base for

Re: [Interest] Embedding QWindow

2014-08-05 Thread Filip Piechocki
On Tue, Aug 5, 2014 at 1:29 PM, Till Oliver Knoll till.oliver.kn...@gmail.com wrote: Am 05.08.2014 um 10:48 schrieb Filip Piechocki fpiecho...@gmail.com: According to this blog post: http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget never use the

[Interest] Embedding QWindow

2014-08-04 Thread rap
Hello, I'm trying to create an initial OpenGL project for porting some Visual Studio 2010 win32 OpenGL learning stuff to Qt 5.3.1. I wonder if it is somehow possible to embed Opengl classes derived from QWindow as the centralwidget to QMainWindow? So far I have been using a QGLWidget as the

Re: [Interest] Embedding QWindow

2014-08-04 Thread rap
Subject: [Interest] Embedding QWindow Hello, I'm trying to create an initial OpenGL project for porting some Visual Studio 2010 win32 OpenGL learning stuff to Qt 5.3.1. I wonder if it is somehow possible to embed Opengl classes derived from QWindow as the centralwidget to QMainWindow? So far I

Re: [Interest] Embedding QWindow

2014-08-04 Thread Ian Monroe
On Mon, Aug 4, 2014 at 8:28 AM, rap r...@dlc.fi wrote: Hello, I'm trying to create an initial OpenGL project for porting some Visual Studio 2010 win32 OpenGL learning stuff to Qt 5.3.1. I wonder if it is somehow possible to embed Opengl classes derived from QWindow as the centralwidget to

Re: [Interest] Embedding QWindow

2014-08-04 Thread rap
From: Ian Monroe ... On Mon, Aug 4, 2014 at 8:28 AM, rap r...@dlc.fi wrote: Hello, I'm trying to create an initial OpenGL project for porting some Visual Studio 2010 win32 OpenGL learning stuff to Qt 5.3.1. I wonder if it is somehow possible to embed Opengl classes derived from

Re: [Interest] Embedding QWindow

2014-08-04 Thread Ian Monroe
On Mon, Aug 4, 2014 at 11:21 AM, rap r...@dlc.fi wrote: Thanks Ian, I have studied that example but it does not give an answer. What I'm trying accomplish is to have a MainWindow (derived from QApplication / QWidget) for user input, (buttons etc.) and then a QWindow derived class as the

Re: [Interest] Embedding QWindow

2014-08-04 Thread rap
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

Re: [Interest] Embedding QWindow

2014-08-04 Thread 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

Re: [Interest] Embedding QWindow

2014-08-04 Thread rap
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

Re: [Interest] Embedding QWindow

2014-08-04 Thread Ian Monroe
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