QOpenGLWidget not working unless in main window



  • Hello everybody,

    My QOpenGLWidget works perfectly in the main window of the application. What can be the reason why it doesn't work anymore when it is not in the main window?

    It seems like, when the containing window is not the main window, the QOpenGLWidget's off-screen buffer is not copied back on screen, in its widget area.

    Any clue?

    I'm working on Windows 7, Qt 5.5, on a Intel i7 machine equipped with NVidia Quadro K2100M graphics card.


  • Qt Champions 2016

    @Piero
    Hi,
    Can you try making the containing widget native and see if the problem persists.

    Kind regards.



  • @kshegunov

    Hi,

    thank you for answering to my question.

    I think it is a good hint. But I tried to either 1) set all parents to native and 2) set all widgets in the window to native. And it didn't work in both cases.

    Actually, if it worked, I'm not sure how that would explain why it works when the QOpenGLWidget lies in the main window of the application, into and among other widgets that are mostly non native. And why it doesn't work when the same window is not the main window of the application.

    I guess there must be something to do with the other window, that actually has some graphics too.

    But it was worth trying, thank you.

    Piero


  • Qt Champions 2016

    @Piero
    Well, nothing else comes to mind. Could you attach a screenshot (you can use ![alt text](http://imageurl) to do that) of the described problem. Perhaps it will attract some better suggestions.

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.