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.


  • Moderators

    Thanks for taking the time to post your solution.

    Happy coding!

    Eddy


Log in to reply
 

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