[Qt-interest] MDI'd OpenGL [solved]

Claudio Vaccani Claudio.Vaccani at synopsys.com
Thu Jun 24 09:40:23 CEST 2010


Claudio Vaccani wrote:
> Oliver.Knoll at comit.ch wrote:
>> Claudio Vaccani wrote on Thursday, June 10, 2010 9:58 AM:
>>
>>> ... If, however, I minimize the application window before the
>>> first plot shows up, I end up with an empty subwindow that looks like
>>> it didn't get a valid OpenGL context and that reacts quite strangely
>>> to user input(can't be moved, minimize/maximize/close buttons hardly
>>> work). 
>> Is this on Mac OS X using Cocoa Qt? There is a known bug with regards to QGLWidgets not properly initialized when they are invisible (e.g. in a scrollbar's invisible part) at the time of widget creation.
>>
>>   http://bugreports.qt.nokia.com/browse/QTBUG-8580
>>
>> Might be related (this is not an issue however on Windows or Linux). Unfortunatelly this won't be fixed: "Out of scope". But the original bug reporter, Alan, mentioned a workaround, see issue above.
>>
>> Cheers, Oliver
> 
> Thanks for the link. Though it seems to be a similar problem, I'm afraid
> that this is actually happening on Linux (haven't tried Windows yet).
> Then again that's probably a good thing. I'm still hoping that I'm just
> overlooking something completely obvious  ;-)
> 
>     Cheers
>       Claudio

Finally got it to work (with a little help from Nokia). Seems that the 
problem was due to the switch to windowless child widgets in Qt 4.4. 
Setting the viewport of the MdiArea to be a native widget did the job.

    Cheers
      Claudio



More information about the Qt-interest-old mailing list