<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Qt3D features in a QMdiArea]]></title><description><![CDATA[<p dir="auto">Is the topic reasonable? I have an app that I want to write a plugin for that spawns a Qt3D window into the main application's QMdiArea as a QMdiSubWindow. Ideally, I would want to write this in such a way that I can also port the code for use on mobile devices (meaning that there would be no QMdiArea).</p>
<p dir="auto">The first obstacle I see is that Qt3D code doesn't use widgets at all - it uses QWindow. I <em>think</em> I can get away with using QWidget::createWindowContainer(), but there's warnings all over the place that this will have a major performance impact, and my attempt at using it gives me the following error:</p>
<p dir="auto">@Could not create requested format:<br />
QSurfaceFormat(version 2.0, options QFlags() , depthBufferSize 24 , redBufferSize -1 , greenBufferSize -1 , blueBufferSize -1 , alphaBufferSize -1 , stencilBufferSize -1 , samples -1 , swapBehavior 2 , profile 0 )<br />
got format:<br />
QSurfaceFormat(version 3.3, options QFlags(0x4) , depthBufferSize 24 , redBufferSize 8 , greenBufferSize 8 , blueBufferSize 8 , alphaBufferSize 0 , stencilBufferSize 0 , samples -1 , swapBehavior 2 , profile 0 )<br />
Attempt to activate invalid window surface<br />
Maybe set the window size, eg view.resize(800, 600)..?<br />
ASSERT failure in QGLPainter: "begin() has not been called or it failed", file /home/rich/tmp/depot/qt5/qt3d/src/threed/painting/qglpainter.cpp, line 1018<br />
The program has unexpectedly finished.@</p>
<p dir="auto">Would I be better off spawning a QWindow outside of the QMdiArea and giving up allowing it to be managed by the main application?</p>
<p dir="auto">I've been looking forward to using lots of the Qt3D capabilities like camera control and model loading.</p>
]]></description><link>https://forum.qt.io/topic/38103/using-qt3d-features-in-a-qmdiarea</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 08:40:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/38103.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Feb 2014 15:13:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Qt3D features in a QMdiArea on Thu, 13 Mar 2014 10:23:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi kshots,<br />
I came across your post because I had a very similar issue using a GL window with a winow container. What finally worked for me is to set both the size of the gl window and the size of the container fixed (e.g. 600x800).<br />
If you have been able to find a better way in the meantime it would be very nice of you to share it!</p>
]]></description><link>https://forum.qt.io/post/218366</link><guid isPermaLink="true">https://forum.qt.io/post/218366</guid><dc:creator><![CDATA[Tatarata]]></dc:creator><pubDate>Thu, 13 Mar 2014 10:23:45 GMT</pubDate></item></channel></rss>