Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Refresh problem widget QGLWidget in MainWindow with another widgets



  • Verions:
    Qt version 5.8 MSVC 2015 x32
    Microsoft Windows 10 x64

    Commenting setWindowFlags label FPS works.

    MainWindow::MainWindow(QWidget *parent) :
       QMainWindow(parent),
       ui(new Ui::MainWindow)
    {
       ui->setupUi(this);
    
       //setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint); // Remove TitleBar Window
    
       //----------------------------------
    

    alt text

    Uncommenting setWindowFlags label FPS not refresh anymore.
    The same problem occours when showFullScreen()

    setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint); // Remove TitleBar Window
    

    alt text



  • SOLVED ! =D

    Solved, I was using an obsolete QGlWidget class, and the problem was solved using the current QOpenGLWidget class.



  • Thanks for taking the time to post your solution.

    Happy coding!

    Eddy


Log in to reply