Re: [Development] QGLWidget creation with non-visible parent

2013-11-29 Thread joao morgado
In my case I have another strange issue that I still havent been able to identify the reason. My child qglwidget can have animation, fired by a timer, if the user presses a button.  Everything works ok if I only have one instance of the parent widget.  However, creating 2 instances of the paren

Re: [Development] QGLWidget creation with non-visible parent

2013-11-29 Thread Csaba Csernai
Thanks your tip. I thought about it, but the problem is that many other object created that are depending on shaders and also all the configuration, data uploading, etc. are handled before the first showEvent occurring. It is possible to make a workaround, but really it would be a hell of a work. T

Re: [Development] QGLWidget creation with non-visible parent

2013-11-29 Thread joao morgado
Hi  I had the same similar issue, I was using a parent widget, with buttons and a frame with a child qglwidget derived class. What I did was to create a method in the child qglwidget derived class to initialize the shaders, and I only calls this method inside the showEvent() of the parent widge

[Development] QGLWidget creation with non-visible parent

2013-11-28 Thread Csaba Csernai
Hi everyone! I would like to ask your help in some Qt 5 matter. I think it's somewhat related to QTBUG-31451, but not sure. When I create a QGLWidget with a parent which not yet visible, then it seems to fail to compile shaders although QGLContext is valid( at least the isValid function returns t